@kepler.gl/reducers 3.0.0-alpha.0 → 3.0.0-alpha.2
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/combined-updaters.d.ts +30 -1
- package/dist/combined-updaters.js +235 -24
- package/dist/composer-helpers.d.ts +7 -4
- package/dist/composer-helpers.js +17 -28
- package/dist/composers.d.ts +6 -0
- package/dist/composers.js +2 -22
- package/dist/core.d.ts +1 -1
- package/dist/core.js +15 -25
- package/dist/data-utils.js +5 -23
- package/dist/export-utils.js +1 -21
- package/dist/index.d.ts +2 -3
- package/dist/index.js +36 -35
- package/dist/interaction-utils.d.ts +1 -5
- package/dist/interaction-utils.js +11 -31
- package/dist/layer-utils.d.ts +39 -10
- package/dist/layer-utils.js +112 -57
- package/dist/map-state-updaters.d.ts +33 -2
- package/dist/map-state-updaters.js +277 -38
- package/dist/map-state.d.ts +74 -2
- package/dist/map-state.js +2 -22
- package/dist/map-style-updaters.d.ts +30 -17
- package/dist/map-style-updaters.js +303 -104
- package/dist/map-style.js +2 -22
- package/dist/merger-handler.d.ts +10 -0
- package/dist/merger-handler.js +123 -0
- package/dist/middleware.js +6 -22
- package/dist/provider-state-updaters.d.ts +0 -7
- package/dist/provider-state-updaters.js +2 -92
- package/dist/provider-state.js +2 -22
- package/dist/root.d.ts +1 -8
- package/dist/root.js +24 -30
- package/dist/ui-state-updaters.d.ts +9 -2
- package/dist/ui-state-updaters.js +87 -82
- package/dist/ui-state.js +2 -22
- package/dist/vis-state-merger.d.ts +51 -13
- package/dist/vis-state-merger.js +411 -131
- package/dist/vis-state-selectors.js +8 -24
- package/dist/vis-state-updaters.d.ts +136 -10
- package/dist/vis-state-updaters.js +965 -283
- package/dist/vis-state.d.ts +210 -2
- package/dist/vis-state.js +2 -22
- package/package.json +23 -20
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
// Copyright (c) 2022 Uber Technologies, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
-
// of this software and associated documentation files (the "Software"), to deal
|
|
5
|
-
// in the Software without restriction, including without limitation the rights
|
|
6
|
-
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
-
// copies of the Software, and to permit persons to whom the Software is
|
|
8
|
-
// furnished to do so, subject to the following conditions:
|
|
9
|
-
//
|
|
10
|
-
// The above copyright notice and this permission notice shall be included in
|
|
11
|
-
// all copies or substantial portions of the Software.
|
|
12
|
-
//
|
|
13
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
-
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
-
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
-
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
17
|
-
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
18
|
-
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
19
|
-
// THE SOFTWARE.
|
|
20
|
-
|
|
21
1
|
"use strict";
|
|
22
2
|
|
|
23
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -29,9 +9,13 @@ exports.getFileExtensions = exports.getFileFormatNames = void 0;
|
|
|
29
9
|
|
|
30
10
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
31
11
|
|
|
32
|
-
var _reselect = require("reselect")
|
|
33
|
-
|
|
34
|
-
|
|
12
|
+
var _reselect = require("reselect");
|
|
13
|
+
|
|
14
|
+
// SPDX-License-Identifier: MIT
|
|
15
|
+
// Copyright contributors to the kepler.gl project
|
|
16
|
+
// NOTE: default formats must match file-handler-test.js
|
|
17
|
+
var DEFAULT_FILE_EXTENSIONS = ['csv', 'json', 'geojson', 'arrow'];
|
|
18
|
+
var DEFAULT_FILE_FORMATS = ['CSV', 'Json', 'GeoJSON', 'Arrow'];
|
|
35
19
|
var getFileFormatNames = (0, _reselect.createSelector)( // @ts-expect-error
|
|
36
20
|
function (state) {
|
|
37
21
|
return state.loaders;
|
|
@@ -50,4 +34,4 @@ function (state) {
|
|
|
50
34
|
})));
|
|
51
35
|
});
|
|
52
36
|
exports.getFileExtensions = getFileExtensions;
|
|
53
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy92aXMtc3RhdGUtc2VsZWN0b3JzLnRzIl0sIm5hbWVzIjpbIkRFRkFVTFRfRklMRV9FWFRFTlNJT05TIiwiREVGQVVMVF9GSUxFX0ZPUk1BVFMiLCJnZXRGaWxlRm9ybWF0TmFtZXMiLCJzdGF0ZSIsImxvYWRlcnMiLCJtYXAiLCJsb2FkZXIiLCJuYW1lIiwiZ2V0RmlsZUV4dGVuc2lvbnMiLCJmbGF0TWFwIiwiZXh0ZW5zaW9ucyJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFHQTs7QUFIQTtBQUNBO0FBSUE7QUFDQSxJQUFNQSx1QkFBdUIsR0FBRyxDQUFDLEtBQUQsRUFBUSxNQUFSLEVBQWdCLFNBQWhCLEVBQTJCLE9BQTNCLENBQWhDO0FBQ0EsSUFBTUMsb0JBQW9CLEdBQUcsQ0FBQyxLQUFELEVBQVEsTUFBUixFQUFnQixTQUFoQixFQUEyQixPQUEzQixDQUE3QjtBQUVPLElBQU1DLGtCQUFrQixHQUFHLCtCQUNoQztBQUNBLFVBQUFDLEtBQUs7QUFBQSxTQUFJQSxLQUFLLENBQUNDLE9BQVY7QUFBQSxDQUYyQixFQUdoQyxVQUFBQSxPQUFPO0FBQUEsbUJBQVFILG9CQUFSLHNDQUFpQ0csT0FBTyxDQUFDQyxHQUFSLENBQVksVUFBQUMsTUFBTTtBQUFBLFdBQUlBLE1BQU0sQ0FBQ0MsSUFBWDtBQUFBLEdBQWxCLENBQWpDO0FBQUEsQ0FIeUIsQ0FBM0I7O0FBTUEsSUFBTUMsaUJBQWlCLEdBQUcsK0JBQy9CO0FBQ0EsVUFBQUwsS0FBSztBQUFBLFNBQUlBLEtBQUssQ0FBQ0MsT0FBVjtBQUFBLENBRjBCLEVBRy9CLFVBQUFBLE9BQU87QUFBQSxtQkFBUUosdUJBQVIsc0NBQW9DSSxPQUFPLENBQUNLLE9BQVIsQ0FBZ0IsVUFBQUgsTUFBTTtBQUFBLFdBQUlBLE1BQU0sQ0FBQ0ksVUFBWDtBQUFBLEdBQXRCLENBQXBDO0FBQUEsQ0FId0IsQ0FBMUIiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBTUERYLUxpY2Vuc2UtSWRlbnRpZmllcjogTUlUXG4vLyBDb3B5cmlnaHQgY29udHJpYnV0b3JzIHRvIHRoZSBrZXBsZXIuZ2wgcHJvamVjdFxuXG5pbXBvcnQge2NyZWF0ZVNlbGVjdG9yfSBmcm9tICdyZXNlbGVjdCc7XG5cbi8vIE5PVEU6IGRlZmF1bHQgZm9ybWF0cyBtdXN0IG1hdGNoIGZpbGUtaGFuZGxlci10ZXN0LmpzXG5jb25zdCBERUZBVUxUX0ZJTEVfRVhURU5TSU9OUyA9IFsnY3N2JywgJ2pzb24nLCAnZ2VvanNvbicsICdhcnJvdyddO1xuY29uc3QgREVGQVVMVF9GSUxFX0ZPUk1BVFMgPSBbJ0NTVicsICdKc29uJywgJ0dlb0pTT04nLCAnQXJyb3cnXTtcblxuZXhwb3J0IGNvbnN0IGdldEZpbGVGb3JtYXROYW1lcyA9IGNyZWF0ZVNlbGVjdG9yKFxuICAvLyBAdHMtZXhwZWN0LWVycm9yXG4gIHN0YXRlID0+IHN0YXRlLmxvYWRlcnMsXG4gIGxvYWRlcnMgPT4gWy4uLkRFRkFVTFRfRklMRV9GT1JNQVRTLCAuLi5sb2FkZXJzLm1hcChsb2FkZXIgPT4gbG9hZGVyLm5hbWUpXVxuKTtcblxuZXhwb3J0IGNvbnN0IGdldEZpbGVFeHRlbnNpb25zID0gY3JlYXRlU2VsZWN0b3IoXG4gIC8vIEB0cy1leHBlY3QtZXJyb3JcbiAgc3RhdGUgPT4gc3RhdGUubG9hZGVycyxcbiAgbG9hZGVycyA9PiBbLi4uREVGQVVMVF9GSUxFX0VYVEVOU0lPTlMsIC4uLmxvYWRlcnMuZmxhdE1hcChsb2FkZXIgPT4gbG9hZGVyLmV4dGVuc2lvbnMpXVxuKTtcbiJdfQ==
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReceiveMapConfigPayload, VisStateActions, MapStateActions, ActionTypes } from '@kepler.gl/actions';
|
|
2
2
|
import { Layer } from '@kepler.gl/layers';
|
|
3
|
-
import { VisState } from '@kepler.gl/schemas';
|
|
3
|
+
import { VisState, Merger, PostMergerPayload } from '@kepler.gl/schemas';
|
|
4
4
|
import { Filter, InteractionConfig, AnimationConfig, Editor } from '@kepler.gl/types';
|
|
5
5
|
import { Loader } from '@loaders.gl/loader-utils';
|
|
6
6
|
import { Datasets } from '@kepler.gl/table';
|
|
@@ -14,22 +14,40 @@ export declare const DEFAULT_EDITOR: Editor;
|
|
|
14
14
|
* @public
|
|
15
15
|
*/
|
|
16
16
|
export declare const INITIAL_VIS_STATE: VisState;
|
|
17
|
+
declare type UpdateStateWithLayerAndDataType = {
|
|
18
|
+
layers: Layer[];
|
|
19
|
+
layerData: any[];
|
|
20
|
+
};
|
|
17
21
|
/**
|
|
18
22
|
* Update state with updated layer and layerData
|
|
19
23
|
*
|
|
20
24
|
*/
|
|
21
|
-
export declare function updateStateWithLayerAndData(state:
|
|
25
|
+
export declare function updateStateWithLayerAndData<S extends UpdateStateWithLayerAndDataType>(state: S, { layerData, layer, idx }: {
|
|
22
26
|
layerData?: any;
|
|
23
27
|
layer: Layer;
|
|
24
28
|
idx: number;
|
|
25
|
-
}):
|
|
29
|
+
}): S;
|
|
26
30
|
export declare function updateStateOnLayerVisibilityChange<S extends VisState>(state: S, layer: Layer): S;
|
|
31
|
+
/**
|
|
32
|
+
* Apply layer config
|
|
33
|
+
* @memberof visStateUpdaters
|
|
34
|
+
* @returns nextState
|
|
35
|
+
*/
|
|
36
|
+
export declare function applyLayerConfigUpdater(state: VisState, action: VisStateActions.ApplyLayerConfigUpdaterAction): VisState;
|
|
27
37
|
/**
|
|
28
38
|
* Update layer base config: dataId, label, column, isVisible
|
|
29
39
|
* @memberof visStateUpdaters
|
|
30
40
|
* @returns nextState
|
|
31
41
|
*/
|
|
32
42
|
export declare function layerConfigChangeUpdater(state: VisState, action: VisStateActions.LayerConfigChangeUpdaterAction): VisState;
|
|
43
|
+
/**
|
|
44
|
+
* Updates isValid flag of a layer.
|
|
45
|
+
* Updates isVisible based on the value of isValid.
|
|
46
|
+
* Triggers update of data for the layer in order to get errors again during next update iteration.
|
|
47
|
+
* @memberof visStateUpdaters
|
|
48
|
+
* @returns nextState
|
|
49
|
+
*/
|
|
50
|
+
export declare function layerSetIsValidUpdater(state: VisState, action: VisStateActions.LayerSetIsValidUpdaterAction): VisState;
|
|
33
51
|
/**
|
|
34
52
|
* Update layer base config: dataId, label, column, isVisible
|
|
35
53
|
* @memberof visStateUpdaters
|
|
@@ -47,6 +65,7 @@ export declare function layerDataIdChangeUpdater(state: VisState, action: {
|
|
|
47
65
|
dataId: string;
|
|
48
66
|
};
|
|
49
67
|
}): VisState;
|
|
68
|
+
export declare function setInitialLayerConfig(layer: any, datasets: any, layerClasses: any): Layer;
|
|
50
69
|
/**
|
|
51
70
|
* Update layer type. Previews layer config will be copied if applicable.
|
|
52
71
|
* @memberof visStateUpdaters
|
|
@@ -143,7 +162,59 @@ export declare const updateLayerAnimationSpeedUpdater: (state: VisState, { speed
|
|
|
143
162
|
* @memberof visStateUpdaters
|
|
144
163
|
* @public
|
|
145
164
|
*/
|
|
146
|
-
export declare const
|
|
165
|
+
export declare const setFilterViewUpdater: (state: VisState, action: VisStateActions.SetFilterViewUpdaterAction) => {
|
|
166
|
+
filters: Filter[];
|
|
167
|
+
mapInfo: import("@kepler.gl/types").MapInfo;
|
|
168
|
+
layers: Layer[];
|
|
169
|
+
layerData: any[];
|
|
170
|
+
layerToBeMerged: any[];
|
|
171
|
+
layerOrder: string[];
|
|
172
|
+
effects: import("@kepler.gl/types").Effect[];
|
|
173
|
+
effectOrder: string[];
|
|
174
|
+
filterToBeMerged: any[];
|
|
175
|
+
datasets: Datasets;
|
|
176
|
+
editingDataset: string | undefined;
|
|
177
|
+
interactionConfig: InteractionConfig;
|
|
178
|
+
interactionToBeMerged: any;
|
|
179
|
+
layerBlending: string;
|
|
180
|
+
overlayBlending?: string | undefined;
|
|
181
|
+
hoverInfo: any;
|
|
182
|
+
clicked: any;
|
|
183
|
+
mousePos: any;
|
|
184
|
+
maxDefaultTooltips: number;
|
|
185
|
+
layerClasses: {
|
|
186
|
+
point: typeof import("@kepler.gl/layers/dist/point-layer/point-layer").default;
|
|
187
|
+
arc: typeof import("@kepler.gl/layers/dist/arc-layer/arc-layer").default;
|
|
188
|
+
line: typeof import("@kepler.gl/layers/dist/line-layer/line-layer").default;
|
|
189
|
+
grid: typeof import("@kepler.gl/layers/dist/grid-layer/grid-layer").default;
|
|
190
|
+
hexagon: typeof import("@kepler.gl/layers/dist/hexagon-layer/hexagon-layer").default;
|
|
191
|
+
geojson: typeof import("@kepler.gl/layers/dist/geojson-layer/geojson-layer").default;
|
|
192
|
+
cluster: typeof import("@kepler.gl/layers/dist/cluster-layer/cluster-layer").default;
|
|
193
|
+
icon: typeof import("@kepler.gl/layers/dist/icon-layer/icon-layer").default;
|
|
194
|
+
heatmap: typeof import("@kepler.gl/layers/dist/heatmap-layer/heatmap-layer").default;
|
|
195
|
+
hexagonId: typeof import("@kepler.gl/layers/dist/h3-hexagon-layer/h3-hexagon-layer").default;
|
|
196
|
+
"3D": typeof import("@kepler.gl/layers").ScenegraphLayer;
|
|
197
|
+
trip: typeof import("@kepler.gl/layers/dist/trip-layer/trip-layer").default;
|
|
198
|
+
s2: typeof import("@kepler.gl/layers/dist/s2-geometry-layer/s2-geometry-layer").default;
|
|
199
|
+
};
|
|
200
|
+
animationConfig: AnimationConfig;
|
|
201
|
+
editor: Editor;
|
|
202
|
+
splitMaps: import("@kepler.gl/types").SplitMap[];
|
|
203
|
+
splitMapsToBeMerged: import("@kepler.gl/types").SplitMap[];
|
|
204
|
+
fileLoading: false | import("@kepler.gl/types").FileLoading;
|
|
205
|
+
fileLoadingProgress: import("@kepler.gl/types").FileLoadingProgress;
|
|
206
|
+
loaders: Loader<any, any, import("@loaders.gl/loader-utils").LoaderOptions>[];
|
|
207
|
+
loadOptions: object;
|
|
208
|
+
initialState?: Partial<VisState> | undefined;
|
|
209
|
+
mergers: import("@kepler.gl/schemas").VisStateMergers<any>;
|
|
210
|
+
schema: import("@kepler.gl/schemas").KeplerGLSchemaClass;
|
|
211
|
+
preserveLayerOrder?: string[] | undefined;
|
|
212
|
+
preserveFilterOrder?: string[] | undefined;
|
|
213
|
+
preserveDatasetOrder?: string[] | undefined;
|
|
214
|
+
isMergingDatasets: {
|
|
215
|
+
[datasetId: string]: boolean;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
147
218
|
/**
|
|
148
219
|
* Toggles filter feature visibility
|
|
149
220
|
* @memberof visStateUpdaters
|
|
@@ -166,31 +237,61 @@ export declare const addLayerUpdater: (state: VisState, action: VisStateActions.
|
|
|
166
237
|
* @memberof visStateUpdaters
|
|
167
238
|
* @public
|
|
168
239
|
*/
|
|
169
|
-
export declare
|
|
240
|
+
export declare function removeLayerUpdater<T extends VisState>(state: T, { id }: VisStateActions.RemoveLayerUpdaterAction): T;
|
|
241
|
+
/**
|
|
242
|
+
* Reorder layer
|
|
243
|
+
* @memberof visStateUpdaters
|
|
244
|
+
* @public
|
|
245
|
+
*/
|
|
246
|
+
export declare const reorderLayerUpdater: (state: VisState, { order }: VisStateActions.ReorderLayerUpdaterAction) => VisState;
|
|
170
247
|
/**
|
|
171
248
|
* duplicate layer
|
|
172
249
|
* @memberof visStateUpdaters
|
|
173
250
|
* @public
|
|
174
251
|
*/
|
|
175
|
-
export declare const duplicateLayerUpdater: (state: VisState, {
|
|
252
|
+
export declare const duplicateLayerUpdater: (state: VisState, { id }: VisStateActions.DuplicateLayerUpdaterAction) => VisState;
|
|
176
253
|
/**
|
|
177
|
-
*
|
|
254
|
+
* Add a new effect
|
|
178
255
|
* @memberof visStateUpdaters
|
|
179
256
|
* @public
|
|
180
257
|
*/
|
|
181
|
-
export declare const
|
|
258
|
+
export declare const addEffectUpdater: (state: VisState, action: VisStateActions.AddEffectUpdaterAction) => VisState;
|
|
259
|
+
/**
|
|
260
|
+
* remove effect
|
|
261
|
+
* @memberof visStateUpdaters
|
|
262
|
+
* @public
|
|
263
|
+
*/
|
|
264
|
+
export declare const removeEffectUpdater: (state: VisState, { id }: VisStateActions.RemoveEffectUpdaterAction) => VisState;
|
|
265
|
+
/**
|
|
266
|
+
* Reorder effect
|
|
267
|
+
* @memberof visStateUpdaters
|
|
268
|
+
* @public
|
|
269
|
+
*/
|
|
270
|
+
export declare const reorderEffectUpdater: (state: VisState, { order }: VisStateActions.ReorderEffectUpdaterAction) => VisState;
|
|
271
|
+
/**
|
|
272
|
+
* Update effect
|
|
273
|
+
* @memberof visStateUpdaters
|
|
274
|
+
* @public
|
|
275
|
+
*/
|
|
276
|
+
export declare const updateEffectUpdater: (state: VisState, { id, props }: VisStateActions.UpdateEffectUpdaterAction) => VisState;
|
|
182
277
|
/**
|
|
183
278
|
* Remove a dataset and all layers, filters, tooltip configs that based on it
|
|
184
279
|
* @memberof visStateUpdaters
|
|
185
280
|
* @public
|
|
186
281
|
*/
|
|
187
|
-
export declare
|
|
282
|
+
export declare function removeDatasetUpdater<T extends VisState>(state: T, action: VisStateActions.RemoveDatasetUpdaterAction): T;
|
|
188
283
|
/**
|
|
189
284
|
* update layer blending mode
|
|
190
285
|
* @memberof visStateUpdaters
|
|
191
286
|
* @public
|
|
192
287
|
*/
|
|
193
288
|
export declare const updateLayerBlendingUpdater: (state: VisState, action: VisStateActions.UpdateLayerBlendingUpdaterAction) => VisState;
|
|
289
|
+
/**
|
|
290
|
+
* update overlay blending mode
|
|
291
|
+
* @memberof visStateUpdaters
|
|
292
|
+
* @public
|
|
293
|
+
*/
|
|
294
|
+
export declare const updateOverlayBlendingUpdater: (state: VisState, action: VisStateActions.UpdateOverlayBlendingUpdaterAction) => VisState;
|
|
194
295
|
/**
|
|
195
296
|
* Display dataset table in a modal
|
|
196
297
|
* @memberof visStateUpdaters
|
|
@@ -266,12 +367,25 @@ export declare const toggleLayerForMapUpdater: (state: VisState, { mapIndex, lay
|
|
|
266
367
|
* @public
|
|
267
368
|
*/
|
|
268
369
|
export declare const updateVisDataUpdater: (state: VisState, action: VisStateActions.UpdateVisDataUpdaterAction) => VisState;
|
|
370
|
+
/**
|
|
371
|
+
* Add new dataset to `visState`, with option to load a map config along with the datasets
|
|
372
|
+
*/
|
|
373
|
+
export declare function applyMergersUpdater(state: VisState, action: {
|
|
374
|
+
mergers: Merger<any>[];
|
|
375
|
+
postMergerPayload: PostMergerPayload;
|
|
376
|
+
}): VisState;
|
|
269
377
|
/**
|
|
270
378
|
* Rename an existing dataset in `visState`
|
|
271
379
|
* @memberof visStateUpdaters
|
|
272
380
|
* @public
|
|
273
381
|
*/
|
|
274
382
|
export declare function renameDatasetUpdater(state: VisState, action: VisStateActions.RenameDatasetUpdaterAction): VisState;
|
|
383
|
+
/**
|
|
384
|
+
* Update Dataset props (label, color, meta). Do not use to update data or any related properties
|
|
385
|
+
* @memberof visStateUpdaters
|
|
386
|
+
* @public
|
|
387
|
+
*/
|
|
388
|
+
export declare function updateDatasetPropsUpdater(state: VisState, action: VisStateActions.UpdateDatasetPropsUpdaterAction): VisState;
|
|
275
389
|
/**
|
|
276
390
|
* When a user clicks on the specific map closing icon
|
|
277
391
|
* the application will close the selected map
|
|
@@ -381,7 +495,7 @@ export declare function setFeaturesUpdater(state: VisState, { features }: VisSta
|
|
|
381
495
|
* Set the current selected feature
|
|
382
496
|
* @memberof uiStateUpdaters
|
|
383
497
|
*/
|
|
384
|
-
export declare const setSelectedFeatureUpdater: (state: VisState, { feature }: VisStateActions.SetSelectedFeatureUpdaterAction) => VisState;
|
|
498
|
+
export declare const setSelectedFeatureUpdater: (state: VisState, { feature, selectionContext }: VisStateActions.SetSelectedFeatureUpdaterAction) => VisState;
|
|
385
499
|
/**
|
|
386
500
|
* Delete existing feature from filters
|
|
387
501
|
* @memberof visStateUpdaters
|
|
@@ -408,6 +522,12 @@ export declare function pinTableColumnUpdater(state: VisState, { dataId, column
|
|
|
408
522
|
* @public
|
|
409
523
|
*/
|
|
410
524
|
export declare function copyTableColumnUpdater(state: VisState, { dataId, column }: VisStateActions.CopyTableColumnUpdaterAction): VisState;
|
|
525
|
+
/**
|
|
526
|
+
* Set display format from columns from user selection
|
|
527
|
+
* @memberof visStateUpdaters
|
|
528
|
+
* @public
|
|
529
|
+
*/
|
|
530
|
+
export declare function setColumnDisplayFormatUpdater(state: VisState, { dataId, formats }: VisStateActions.SetColumnDisplayFormatUpdaterAction): VisState;
|
|
411
531
|
/**
|
|
412
532
|
* Update editor
|
|
413
533
|
*/
|
|
@@ -417,3 +537,9 @@ export declare function setFilterAnimationTimeConfigUpdater(state: VisState, { i
|
|
|
417
537
|
* Update editor
|
|
418
538
|
*/
|
|
419
539
|
export declare function setLayerAnimationTimeConfigUpdater(state: VisState, { config }: VisStateActions.SetLayerAnimationTimeConfigAction): VisState;
|
|
540
|
+
export declare function prepareStateForDatasetReplace<T extends VisState>(state: T, dataId: string, dataIdToUse: string): T;
|
|
541
|
+
export declare function replaceDatasetDepsInState<T extends VisState>(state: T, { dataId, dataIdToUse }: {
|
|
542
|
+
dataId: string;
|
|
543
|
+
dataIdToUse: string;
|
|
544
|
+
}): T;
|
|
545
|
+
export {};
|