@kepler.gl/reducers 3.1.0-alpha.3 → 3.1.0-alpha.4

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 } from '@kepler.gl/actions';
2
2
  import { Layer } from '@kepler.gl/layers';
3
3
  import { Merger, PostMergerPayload, VisState } from '@kepler.gl/schemas';
4
- import { Filter, InteractionConfig, AnimationConfig, Editor } from '@kepler.gl/types';
4
+ import { Filter, InteractionConfig, AnimationConfig, FilterAnimationConfig, Editor } 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';
@@ -42,6 +42,16 @@ export declare function applyLayerConfigUpdater(state: VisState, action: VisStat
42
42
  */
43
43
  export declare function layerConfigChangeUpdater(state: VisState, action: VisStateActions.LayerConfigChangeUpdaterAction): VisState;
44
44
  export declare function layerAnimationChangeUpdater<S extends VisState>(state: S, action: any): S;
45
+ /**
46
+ * Update layerId, isVisible, splitMapId
47
+ * handles two cases:
48
+ * 1) toggle the visibility of local SplitMap layer (visState.splitMap.layers)
49
+ * 2) toggle the visibility of global layer (visState.layers)
50
+
51
+ * @memberof visStateUpdaters
52
+ * @returns nextState
53
+ */
54
+ export declare function layerToggleVisibilityUpdater(state: VisState, action: VisStateActions.LayerToggleVisibilityUpdaterAction): VisState;
45
55
  /**
46
56
  * Updates isValid flag of a layer.
47
57
  * Updates isVisible based on the value of isValid.
@@ -106,6 +116,7 @@ export declare function setFilterAnimationTimeUpdater(state: VisState, action: V
106
116
  * @public
107
117
  */
108
118
  export declare function setFilterAnimationWindowUpdater<S extends VisState>(state: S, { id, animationWindow }: VisStateActions.SetFilterAnimationWindowUpdaterAction): S;
119
+ export declare function applyFilterConfigUpdater(state: VisState, action: VisStateActions.ApplyFilterConfigUpdaterAction): VisState;
109
120
  /**
110
121
  * Update filter property
111
122
  * @memberof visStateUpdaters
@@ -141,6 +152,8 @@ export declare const layerColorUIChangeUpdater: (state: VisState, { oldLayer, pr
141
152
  * @public
142
153
  */
143
154
  export declare const toggleFilterAnimationUpdater: (state: VisState, action: VisStateActions.ToggleFilterAnimationUpdaterAction) => VisState;
155
+ export declare function isFilterAnimationConfig(config: AnimationConfig | FilterAnimationConfig): boolean;
156
+ export declare function setAnimationConfigUpdater(state: VisState, action: VisStateActions.SetAnimationConfigUpdaterAction): VisState;
144
157
  /**
145
158
  * @memberof visStateUpdaters
146
159
  * @public
@@ -190,7 +203,21 @@ export declare const setFilterViewUpdater: (state: VisState, action: VisStateAct
190
203
  clicked: any;
191
204
  mousePos: any;
192
205
  maxDefaultTooltips: number;
193
- layerClasses: LayerClassesType;
206
+ layerClasses: {
207
+ point: typeof import("@kepler.gl/layers/dist/point-layer/point-layer").default;
208
+ arc: typeof import("@kepler.gl/layers/dist/arc-layer/arc-layer").default;
209
+ line: typeof import("@kepler.gl/layers/dist/line-layer/line-layer").default;
210
+ grid: typeof import("@kepler.gl/layers/dist/grid-layer/grid-layer").default;
211
+ hexagon: typeof import("@kepler.gl/layers/dist/hexagon-layer/hexagon-layer").default;
212
+ geojson: typeof import("@kepler.gl/layers/dist/geojson-layer/geojson-layer").default;
213
+ cluster: typeof import("@kepler.gl/layers/dist/cluster-layer/cluster-layer").default;
214
+ icon: typeof import("@kepler.gl/layers/dist/icon-layer/icon-layer").default;
215
+ heatmap: typeof import("@kepler.gl/layers/dist/heatmap-layer/heatmap-layer").default;
216
+ hexagonId: typeof import("@kepler.gl/layers/dist/h3-hexagon-layer/h3-hexagon-layer").default;
217
+ "3D": typeof import("@kepler.gl/layers").ScenegraphLayer;
218
+ trip: typeof import("@kepler.gl/layers/dist/trip-layer/trip-layer").default;
219
+ s2: typeof import("@kepler.gl/layers/dist/s2-geometry-layer/s2-geometry-layer").default;
220
+ };
194
221
  animationConfig: AnimationConfig;
195
222
  editor: Editor;
196
223
  splitMaps: import("@kepler.gl/types").SplitMap[];