@kepler.gl/reducers 3.3.0-alpha.0 → 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,7 +1,7 @@
1
1
  import { ActionTypes, CreateNewDatasetSuccessPayload, MapStateActions, ReceiveMapConfigPayload, VisStateActions, SetLoadingIndicatorPayload } from '@kepler.gl/actions';
2
2
  import { Layer } from '@kepler.gl/layers';
3
3
  import KeplerGLSchema, { Merger, PostMergerPayload, VisState } from '@kepler.gl/schemas';
4
- import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor } from '@kepler.gl/types';
4
+ import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor, Annotation } from '@kepler.gl/types';
5
5
  import { Loader } from '@loaders.gl/loader-utils';
6
6
  import { Datasets } from '@kepler.gl/table';
7
7
  import { PayloadAction } from '@reduxjs/toolkit';
@@ -194,6 +194,10 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
194
194
  layerOrder: string[];
195
195
  effects: import("@kepler.gl/types").Effect[];
196
196
  effectOrder: string[];
197
+ annotations: Annotation[];
198
+ annotationsToBeMerged: any[];
199
+ selectedAnnotationId: string | null;
200
+ isEditingAnnotationText: boolean;
197
201
  filterToBeMerged: any[];
198
202
  datasets: Datasets;
199
203
  editingDataset: string | undefined;
@@ -284,6 +288,36 @@ export declare const reorderEffectUpdater: (state: VisState, { order }: VisState
284
288
  * @public
285
289
  */
286
290
  export declare const updateEffectUpdater: (state: VisState, { id, props }: VisStateActions.UpdateEffectUpdaterAction) => VisState;
291
+ /**
292
+ * Add a new annotation
293
+ * @memberof visStateUpdaters
294
+ * @public
295
+ */
296
+ export declare const addAnnotationUpdater: (state: VisState, action: VisStateActions.AddAnnotationUpdaterAction) => VisState;
297
+ /**
298
+ * Remove an annotation
299
+ * @memberof visStateUpdaters
300
+ * @public
301
+ */
302
+ export declare const removeAnnotationUpdater: (state: VisState, { id }: VisStateActions.RemoveAnnotationUpdaterAction) => VisState;
303
+ /**
304
+ * Update an annotation
305
+ * @memberof visStateUpdaters
306
+ * @public
307
+ */
308
+ export declare const updateAnnotationUpdater: (state: VisState, { id, config }: VisStateActions.UpdateAnnotationUpdaterAction) => VisState;
309
+ /**
310
+ * Duplicate an annotation
311
+ * @memberof visStateUpdaters
312
+ * @public
313
+ */
314
+ export declare const duplicateAnnotationUpdater: (state: VisState, { id }: VisStateActions.DuplicateAnnotationUpdaterAction) => VisState;
315
+ /**
316
+ * Set selected annotation
317
+ * @memberof visStateUpdaters
318
+ * @public
319
+ */
320
+ export declare const setSelectedAnnotationUpdater: (state: VisState, { id, isEditingText }: VisStateActions.SetSelectedAnnotationUpdaterAction) => VisState;
287
321
  /**
288
322
  * Remove a dataset and all layers, filters, tooltip configs that based on it
289
323
  * @memberof visStateUpdaters
@@ -517,6 +551,11 @@ export declare function deleteFeatureUpdater(state: VisState, { feature }: VisSt
517
551
  * @memberof visStateUpdaters
518
552
  */
519
553
  export declare function setPolygonFilterLayerUpdater(state: VisState, payload: VisStateActions.SetPolygonFilterLayerUpdaterAction): VisState;
554
+ /**
555
+ * Apply polygon filter to all visible layers
556
+ * @memberof visStateUpdaters
557
+ */
558
+ export declare function setPolygonFilterAllLayersUpdater(state: VisState, payload: VisStateActions.SetPolygonFilterAllLayersUpdaterAction): VisState;
520
559
  /**
521
560
  * @memberof visStateUpdaters
522
561
  * @public