@kepler.gl/reducers 3.0.0 → 3.1.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.
- package/package.json +26 -20
- package/dist/combined-updaters.d.ts +0 -79
- package/dist/combined-updaters.js +0 -423
- package/dist/composer-helpers.d.ts +0 -24
- package/dist/composer-helpers.js +0 -122
- package/dist/composers.d.ts +0 -18
- package/dist/composers.js +0 -27
- package/dist/core.d.ts +0 -64
- package/dist/core.js +0 -139
- package/dist/data-utils.d.ts +0 -8
- package/dist/data-utils.js +0 -42
- package/dist/export-utils.d.ts +0 -21
- package/dist/export-utils.js +0 -104
- package/dist/index.d.ts +0 -35
- package/dist/index.js +0 -373
- package/dist/interaction-utils.d.ts +0 -31
- package/dist/interaction-utils.js +0 -129
- package/dist/layer-utils.d.ts +0 -95
- package/dist/layer-utils.js +0 -344
- package/dist/map-state-updaters.d.ts +0 -93
- package/dist/map-state-updaters.js +0 -489
- package/dist/map-state.d.ts +0 -75
- package/dist/map-state.js +0 -47
- package/dist/map-style-updaters.d.ts +0 -186
- package/dist/map-style-updaters.js +0 -737
- package/dist/map-style.d.ts +0 -4
- package/dist/map-style.js +0 -46
- package/dist/merger-handler.d.ts +0 -10
- package/dist/merger-handler.js +0 -123
- package/dist/middleware.d.ts +0 -8
- package/dist/middleware.js +0 -30
- package/dist/provider-state-updaters.d.ts +0 -35
- package/dist/provider-state-updaters.js +0 -422
- package/dist/provider-state.d.ts +0 -4
- package/dist/provider-state.js +0 -46
- package/dist/root.d.ts +0 -24
- package/dist/root.js +0 -229
- package/dist/ui-state-updaters.d.ts +0 -362
- package/dist/ui-state-updaters.js +0 -871
- package/dist/ui-state.d.ts +0 -3
- package/dist/ui-state.js +0 -48
- package/dist/vis-state-merger.d.ts +0 -140
- package/dist/vis-state-merger.js +0 -915
- package/dist/vis-state-selectors.d.ts +0 -2
- package/dist/vis-state-selectors.js +0 -37
- package/dist/vis-state-updaters.d.ts +0 -545
- package/dist/vis-state-updaters.js +0 -3154
- package/dist/vis-state.d.ts +0 -211
- package/dist/vis-state.js +0 -46
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.getFileExtensions = exports.getFileFormatNames = void 0;
|
|
9
|
-
|
|
10
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
|
|
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'];
|
|
19
|
-
var getFileFormatNames = (0, _reselect.createSelector)( // @ts-expect-error
|
|
20
|
-
function (state) {
|
|
21
|
-
return state.loaders;
|
|
22
|
-
}, function (loaders) {
|
|
23
|
-
return [].concat(DEFAULT_FILE_FORMATS, (0, _toConsumableArray2["default"])(loaders.map(function (loader) {
|
|
24
|
-
return loader.name;
|
|
25
|
-
})));
|
|
26
|
-
});
|
|
27
|
-
exports.getFileFormatNames = getFileFormatNames;
|
|
28
|
-
var getFileExtensions = (0, _reselect.createSelector)( // @ts-expect-error
|
|
29
|
-
function (state) {
|
|
30
|
-
return state.loaders;
|
|
31
|
-
}, function (loaders) {
|
|
32
|
-
return [].concat(DEFAULT_FILE_EXTENSIONS, (0, _toConsumableArray2["default"])(loaders.flatMap(function (loader) {
|
|
33
|
-
return loader.extensions;
|
|
34
|
-
})));
|
|
35
|
-
});
|
|
36
|
-
exports.getF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MsIC4uLmxvYWRlcnMuZmxhdE1hcChsb2FkZXIgPT4gbG9hZGVyLmV4dGVuc2lvbnMpXVxuKTtcbiJdfQ==
|
|
@@ -1,545 +0,0 @@
|
|
|
1
|
-
import { ReceiveMapConfigPayload, VisStateActions, MapStateActions, ActionTypes } from '@kepler.gl/actions';
|
|
2
|
-
import { Layer } from '@kepler.gl/layers';
|
|
3
|
-
import { VisState, Merger, PostMergerPayload } from '@kepler.gl/schemas';
|
|
4
|
-
import { Filter, InteractionConfig, AnimationConfig, Editor } from '@kepler.gl/types';
|
|
5
|
-
import { Loader } from '@loaders.gl/loader-utils';
|
|
6
|
-
import { Datasets } from '@kepler.gl/table';
|
|
7
|
-
export declare const defaultInteractionConfig: InteractionConfig;
|
|
8
|
-
export declare const DEFAULT_ANIMATION_CONFIG: AnimationConfig;
|
|
9
|
-
export declare const DEFAULT_EDITOR: Editor;
|
|
10
|
-
/**
|
|
11
|
-
* Default initial `visState`
|
|
12
|
-
* @memberof visStateUpdaters
|
|
13
|
-
* @constant
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
16
|
-
export declare const INITIAL_VIS_STATE: VisState;
|
|
17
|
-
declare type UpdateStateWithLayerAndDataType = {
|
|
18
|
-
layers: Layer[];
|
|
19
|
-
layerData: any[];
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Update state with updated layer and layerData
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
export declare function updateStateWithLayerAndData<S extends UpdateStateWithLayerAndDataType>(state: S, { layerData, layer, idx }: {
|
|
26
|
-
layerData?: any;
|
|
27
|
-
layer: Layer;
|
|
28
|
-
idx: number;
|
|
29
|
-
}): S;
|
|
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;
|
|
37
|
-
/**
|
|
38
|
-
* Update layer base config: dataId, label, column, isVisible
|
|
39
|
-
* @memberof visStateUpdaters
|
|
40
|
-
* @returns nextState
|
|
41
|
-
*/
|
|
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;
|
|
51
|
-
/**
|
|
52
|
-
* Update layer base config: dataId, label, column, isVisible
|
|
53
|
-
* @memberof visStateUpdaters
|
|
54
|
-
* @returns nextState
|
|
55
|
-
*/
|
|
56
|
-
export declare function layerTextLabelChangeUpdater(state: VisState, action: VisStateActions.LayerTextLabelChangeUpdaterAction): VisState;
|
|
57
|
-
/**
|
|
58
|
-
* Update layer config dataId
|
|
59
|
-
* @memberof visStateUpdaters
|
|
60
|
-
* @returns nextState
|
|
61
|
-
*/
|
|
62
|
-
export declare function layerDataIdChangeUpdater(state: VisState, action: {
|
|
63
|
-
oldLayer: Layer;
|
|
64
|
-
newConfig: {
|
|
65
|
-
dataId: string;
|
|
66
|
-
};
|
|
67
|
-
}): VisState;
|
|
68
|
-
export declare function setInitialLayerConfig(layer: any, datasets: any, layerClasses: any): Layer;
|
|
69
|
-
/**
|
|
70
|
-
* Update layer type. Previews layer config will be copied if applicable.
|
|
71
|
-
* @memberof visStateUpdaters
|
|
72
|
-
* @public
|
|
73
|
-
*/
|
|
74
|
-
export declare function layerTypeChangeUpdater(state: VisState, action: VisStateActions.LayerTypeChangeUpdaterAction): VisState;
|
|
75
|
-
/**
|
|
76
|
-
* Update layer visual channel
|
|
77
|
-
* @memberof visStateUpdaters
|
|
78
|
-
* @returns {Object} nextState
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
export declare function layerVisualChannelChangeUpdater(state: VisState, action: VisStateActions.LayerVisualChannelConfigChangeUpdaterAction): VisState;
|
|
82
|
-
/**
|
|
83
|
-
* Update layer `visConfig`
|
|
84
|
-
* @memberof visStateUpdaters
|
|
85
|
-
* @public
|
|
86
|
-
*/
|
|
87
|
-
export declare function layerVisConfigChangeUpdater(state: VisState, action: VisStateActions.LayerVisConfigChangeUpdaterAction): VisState;
|
|
88
|
-
/**
|
|
89
|
-
* Update filter property
|
|
90
|
-
* @memberof visStateUpdaters
|
|
91
|
-
* @public
|
|
92
|
-
*/
|
|
93
|
-
export declare function setFilterAnimationTimeUpdater(state: VisState, action: VisStateActions.SetFilterAnimationTimeUpdaterAction): VisState;
|
|
94
|
-
/**
|
|
95
|
-
* Update filter animation window
|
|
96
|
-
* @memberof visStateUpdaters
|
|
97
|
-
* @public
|
|
98
|
-
*/
|
|
99
|
-
export declare function setFilterAnimationWindowUpdater(state: VisState, { id, animationWindow }: VisStateActions.SetFilterAnimationWindowUpdaterAction): VisState;
|
|
100
|
-
/**
|
|
101
|
-
* Update filter property
|
|
102
|
-
* @memberof visStateUpdaters
|
|
103
|
-
* @public
|
|
104
|
-
*/
|
|
105
|
-
export declare function setFilterUpdater(state: VisState, action: VisStateActions.SetFilterUpdaterAction): VisState;
|
|
106
|
-
/**
|
|
107
|
-
* Set the property of a filter plot
|
|
108
|
-
* @memberof visStateUpdaters
|
|
109
|
-
* @public
|
|
110
|
-
*/
|
|
111
|
-
export declare const setFilterPlotUpdater: (state: VisState, { idx, newProp, valueIndex }: VisStateActions.SetFilterPlotUpdaterAction) => VisState;
|
|
112
|
-
/**
|
|
113
|
-
* Add a new filter
|
|
114
|
-
* @memberof visStateUpdaters
|
|
115
|
-
* @public
|
|
116
|
-
*/
|
|
117
|
-
export declare const addFilterUpdater: (state: VisState, action: VisStateActions.AddFilterUpdaterAction) => VisState;
|
|
118
|
-
/**
|
|
119
|
-
* Set layer color palette ui state
|
|
120
|
-
* @memberof visStateUpdaters
|
|
121
|
-
*/
|
|
122
|
-
export declare const layerColorUIChangeUpdater: (state: VisState, { oldLayer, prop, newConfig }: VisStateActions.LayerColorUIChangeUpdaterAction) => VisState;
|
|
123
|
-
/**
|
|
124
|
-
* Start and end filter animation
|
|
125
|
-
* @memberof visStateUpdaters
|
|
126
|
-
* @public
|
|
127
|
-
*/
|
|
128
|
-
export declare const toggleFilterAnimationUpdater: (state: VisState, action: VisStateActions.ToggleFilterAnimationUpdaterAction) => VisState;
|
|
129
|
-
/**
|
|
130
|
-
* @memberof visStateUpdaters
|
|
131
|
-
* @public
|
|
132
|
-
*/
|
|
133
|
-
export declare const toggleLayerAnimationUpdater: (state: VisState, action: VisStateActions.ToggleLayerAnimationUpdaterAction) => VisState;
|
|
134
|
-
/**
|
|
135
|
-
* Hide and show layer animation control
|
|
136
|
-
* @memberof visStateUpdaters
|
|
137
|
-
* @public
|
|
138
|
-
*/
|
|
139
|
-
export declare const toggleLayerAnimationControlUpdater: (state: VisState, action: VisStateActions.ToggleLayerAnimationControlUpdaterAction) => VisState;
|
|
140
|
-
/**
|
|
141
|
-
* Change filter animation speed
|
|
142
|
-
* @memberof visStateUpdaters
|
|
143
|
-
* @public
|
|
144
|
-
*/
|
|
145
|
-
export declare const updateFilterAnimationSpeedUpdater: (state: VisState, action: VisStateActions.UpdateFilterAnimationSpeedUpdaterAction) => VisState;
|
|
146
|
-
/**
|
|
147
|
-
* Reset animation config current time to a specified value
|
|
148
|
-
* @memberof visStateUpdaters
|
|
149
|
-
* @public
|
|
150
|
-
*
|
|
151
|
-
*/
|
|
152
|
-
export declare const setLayerAnimationTimeUpdater: (state: VisState, { value }: VisStateActions.SetLayerAnimationTimeUpdaterAction) => VisState;
|
|
153
|
-
/**
|
|
154
|
-
* Update animation speed with the vertical speed slider
|
|
155
|
-
* @memberof visStateUpdaters
|
|
156
|
-
* @public
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
export declare const updateLayerAnimationSpeedUpdater: (state: VisState, { speed }: VisStateActions.UpdateLayerAnimationSpeedUpdaterAction) => VisState;
|
|
160
|
-
/**
|
|
161
|
-
* Show larger time filter at bottom for time playback (apply to time filter only)
|
|
162
|
-
* @memberof visStateUpdaters
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
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
|
-
};
|
|
218
|
-
/**
|
|
219
|
-
* Toggles filter feature visibility
|
|
220
|
-
* @memberof visStateUpdaters
|
|
221
|
-
*/
|
|
222
|
-
export declare const toggleFilterFeatureUpdater: (state: VisState, action: VisStateActions.ToggleFilterFeatureUpdaterAction) => VisState;
|
|
223
|
-
/**
|
|
224
|
-
* Remove a filter
|
|
225
|
-
* @memberof visStateUpdaters
|
|
226
|
-
* @public
|
|
227
|
-
*/
|
|
228
|
-
export declare const removeFilterUpdater: (state: VisState, action: VisStateActions.RemoveFilterUpdaterAction) => VisState;
|
|
229
|
-
/**
|
|
230
|
-
* Add a new layer
|
|
231
|
-
* @memberof visStateUpdaters
|
|
232
|
-
* @public
|
|
233
|
-
*/
|
|
234
|
-
export declare const addLayerUpdater: (state: VisState, action: VisStateActions.AddLayerUpdaterAction) => VisState;
|
|
235
|
-
/**
|
|
236
|
-
* remove layer
|
|
237
|
-
* @memberof visStateUpdaters
|
|
238
|
-
* @public
|
|
239
|
-
*/
|
|
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;
|
|
247
|
-
/**
|
|
248
|
-
* duplicate layer
|
|
249
|
-
* @memberof visStateUpdaters
|
|
250
|
-
* @public
|
|
251
|
-
*/
|
|
252
|
-
export declare const duplicateLayerUpdater: (state: VisState, { id }: VisStateActions.DuplicateLayerUpdaterAction) => VisState;
|
|
253
|
-
/**
|
|
254
|
-
* Add a new effect
|
|
255
|
-
* @memberof visStateUpdaters
|
|
256
|
-
* @public
|
|
257
|
-
*/
|
|
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;
|
|
277
|
-
/**
|
|
278
|
-
* Remove a dataset and all layers, filters, tooltip configs that based on it
|
|
279
|
-
* @memberof visStateUpdaters
|
|
280
|
-
* @public
|
|
281
|
-
*/
|
|
282
|
-
export declare function removeDatasetUpdater<T extends VisState>(state: T, action: VisStateActions.RemoveDatasetUpdaterAction): T;
|
|
283
|
-
/**
|
|
284
|
-
* update layer blending mode
|
|
285
|
-
* @memberof visStateUpdaters
|
|
286
|
-
* @public
|
|
287
|
-
*/
|
|
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;
|
|
295
|
-
/**
|
|
296
|
-
* Display dataset table in a modal
|
|
297
|
-
* @memberof visStateUpdaters
|
|
298
|
-
* @public
|
|
299
|
-
*/
|
|
300
|
-
export declare const showDatasetTableUpdater: (state: VisState, action: VisStateActions.ShowDatasetTableUpdaterAction) => VisState;
|
|
301
|
-
/**
|
|
302
|
-
* Add custom color for datasets and layers
|
|
303
|
-
* @memberof visStateUpdaters
|
|
304
|
-
* @public
|
|
305
|
-
*/
|
|
306
|
-
export declare const updateTableColorUpdater: (state: VisState, action: VisStateActions.UpdateDatasetColorUpdater) => VisState;
|
|
307
|
-
/**
|
|
308
|
-
* reset visState to initial State
|
|
309
|
-
* @memberof visStateUpdaters
|
|
310
|
-
* @public
|
|
311
|
-
*/
|
|
312
|
-
export declare const resetMapConfigUpdater: (state: VisState) => VisState;
|
|
313
|
-
/**
|
|
314
|
-
* Propagate `visState` reducer with a new configuration. Current config will be override.
|
|
315
|
-
* @memberof visStateUpdaters
|
|
316
|
-
* @public
|
|
317
|
-
*/
|
|
318
|
-
export declare const receiveMapConfigUpdater: (state: VisState, { payload: { config, options } }: {
|
|
319
|
-
type?: typeof ActionTypes.RECEIVE_MAP_CONFIG;
|
|
320
|
-
payload: ReceiveMapConfigPayload;
|
|
321
|
-
}) => VisState;
|
|
322
|
-
/**
|
|
323
|
-
* Trigger layer hover event with hovered object
|
|
324
|
-
* @memberof visStateUpdaters
|
|
325
|
-
* @public
|
|
326
|
-
*/
|
|
327
|
-
export declare const layerHoverUpdater: (state: VisState, action: VisStateActions.OnLayerHoverUpdaterAction) => VisState;
|
|
328
|
-
/**
|
|
329
|
-
* Update `interactionConfig`
|
|
330
|
-
* @memberof visStateUpdaters
|
|
331
|
-
* @public
|
|
332
|
-
*/
|
|
333
|
-
export declare function interactionConfigChangeUpdater(state: VisState, action: VisStateActions.InteractionConfigChangeUpdaterAction): VisState;
|
|
334
|
-
/**
|
|
335
|
-
* Trigger layer click event with clicked object
|
|
336
|
-
* @memberof visStateUpdaters
|
|
337
|
-
* @public
|
|
338
|
-
*/
|
|
339
|
-
export declare const layerClickUpdater: (state: VisState, action: VisStateActions.OnLayerClickUpdaterAction) => VisState;
|
|
340
|
-
/**
|
|
341
|
-
* Trigger map click event, unselect clicked object
|
|
342
|
-
* @memberof visStateUpdaters
|
|
343
|
-
* @public
|
|
344
|
-
*/
|
|
345
|
-
export declare const mapClickUpdater: (state: VisState, action: VisStateActions.OnMapClickUpdaterAction) => VisState;
|
|
346
|
-
/**
|
|
347
|
-
* Trigger map move event
|
|
348
|
-
* @memberof visStateUpdaters
|
|
349
|
-
* @public
|
|
350
|
-
*/
|
|
351
|
-
export declare const mouseMoveUpdater: (state: VisState, { evt }: VisStateActions.OnMouseMoveUpdaterAction) => VisState;
|
|
352
|
-
/**
|
|
353
|
-
* Toggle visibility of a layer for a split map
|
|
354
|
-
* @memberof visStateUpdaters
|
|
355
|
-
* @public
|
|
356
|
-
*/
|
|
357
|
-
export declare const toggleSplitMapUpdater: (state: VisState, action: MapStateActions.ToggleSplitMapUpdaterAction) => VisState;
|
|
358
|
-
/**
|
|
359
|
-
* Toggle visibility of a layer in a split map
|
|
360
|
-
* @memberof visStateUpdaters
|
|
361
|
-
* @public
|
|
362
|
-
*/
|
|
363
|
-
export declare const toggleLayerForMapUpdater: (state: VisState, { mapIndex, layerId }: VisStateActions.ToggleLayerForMapUpdaterAction) => VisState;
|
|
364
|
-
/**
|
|
365
|
-
* Add new dataset to `visState`, with option to load a map config along with the datasets
|
|
366
|
-
* @memberof visStateUpdaters
|
|
367
|
-
* @public
|
|
368
|
-
*/
|
|
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;
|
|
377
|
-
/**
|
|
378
|
-
* Rename an existing dataset in `visState`
|
|
379
|
-
* @memberof visStateUpdaters
|
|
380
|
-
* @public
|
|
381
|
-
*/
|
|
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;
|
|
389
|
-
/**
|
|
390
|
-
* When a user clicks on the specific map closing icon
|
|
391
|
-
* the application will close the selected map
|
|
392
|
-
* and will merge the remaining one with the global state
|
|
393
|
-
* TODO: i think in the future this action should be called merge map layers with global settings
|
|
394
|
-
* @param {Object} state `visState`
|
|
395
|
-
* @param {Object} action action
|
|
396
|
-
* @returns {Object} nextState
|
|
397
|
-
*/
|
|
398
|
-
export declare function closeSpecificMapAtIndex<S extends VisState>(state: S, action: MapStateActions.ToggleSplitMapUpdaterAction): S;
|
|
399
|
-
/**
|
|
400
|
-
* Trigger file loading dispatch `addDataToMap` if succeed, or `loadFilesErr` if failed
|
|
401
|
-
* @memberof visStateUpdaters
|
|
402
|
-
* @public
|
|
403
|
-
*/
|
|
404
|
-
export declare const loadFilesUpdater: (state: VisState, action: VisStateActions.LoadFilesUpdaterAction) => VisState;
|
|
405
|
-
/**
|
|
406
|
-
* Sucessfully loaded one file, move on to the next one
|
|
407
|
-
* @memberof visStateUpdaters
|
|
408
|
-
* @public
|
|
409
|
-
*/
|
|
410
|
-
export declare function loadFileStepSuccessUpdater(state: VisState, action: VisStateActions.LoadFileStepSuccessAction): VisState;
|
|
411
|
-
/**
|
|
412
|
-
*
|
|
413
|
-
* @memberof visStateUpdaters
|
|
414
|
-
* @public
|
|
415
|
-
*/
|
|
416
|
-
export declare function loadNextFileUpdater(state: VisState): VisState;
|
|
417
|
-
export declare function makeLoadFileTask(file: any, fileCache: any, loaders?: Loader[], loadOptions?: {}): any;
|
|
418
|
-
/**
|
|
419
|
-
*
|
|
420
|
-
* @memberof visStateUpdaters
|
|
421
|
-
* @public
|
|
422
|
-
*/
|
|
423
|
-
export declare function processFileContentUpdater(state: VisState, action: VisStateActions.ProcessFileContentUpdaterAction): VisState;
|
|
424
|
-
export declare function parseProgress(prevProgress: {} | undefined, progress: any): {
|
|
425
|
-
percent?: undefined;
|
|
426
|
-
} | {
|
|
427
|
-
percent: any;
|
|
428
|
-
};
|
|
429
|
-
/**
|
|
430
|
-
* gets called with payload = AsyncGenerator<???>
|
|
431
|
-
* @memberof visStateUpdaters
|
|
432
|
-
* @public
|
|
433
|
-
*/
|
|
434
|
-
export declare const nextFileBatchUpdater: (state: VisState, { payload: { gen, fileName, progress, accumulated, onFinish } }: VisStateActions.NextFileBatchUpdaterAction) => VisState;
|
|
435
|
-
/**
|
|
436
|
-
* Trigger loading file error
|
|
437
|
-
* @memberof visStateUpdaters
|
|
438
|
-
* @public
|
|
439
|
-
*/
|
|
440
|
-
export declare const loadFilesErrUpdater: (state: VisState, { error, fileName }: VisStateActions.LoadFilesErrUpdaterAction) => VisState;
|
|
441
|
-
/**
|
|
442
|
-
* When select dataset for export, apply cpu filter to selected dataset
|
|
443
|
-
* @memberof visStateUpdaters
|
|
444
|
-
* @public
|
|
445
|
-
*/
|
|
446
|
-
export declare const applyCPUFilterUpdater: (state: VisState, { dataId }: VisStateActions.ApplyCPUFilterUpdaterAction) => VisState;
|
|
447
|
-
/**
|
|
448
|
-
* User input to update the info of the map
|
|
449
|
-
* @memberof visStateUpdaters
|
|
450
|
-
* @public
|
|
451
|
-
*/
|
|
452
|
-
export declare const setMapInfoUpdater: (state: VisState, action: VisStateActions.SetMapInfoUpdaterAction) => VisState;
|
|
453
|
-
/**
|
|
454
|
-
* Helper function to update All layer domain and layer data of state
|
|
455
|
-
*/
|
|
456
|
-
export declare function addDefaultLayers(state: VisState, datasets: Datasets): {
|
|
457
|
-
state: VisState;
|
|
458
|
-
newLayers: Layer[];
|
|
459
|
-
};
|
|
460
|
-
/**
|
|
461
|
-
* helper function to find default tooltips
|
|
462
|
-
* @param {Object} state
|
|
463
|
-
* @param {Object} dataset
|
|
464
|
-
* @returns {Object} nextState
|
|
465
|
-
*/
|
|
466
|
-
export declare function addDefaultTooltips(state: any, dataset: any): any;
|
|
467
|
-
export declare function initialFileLoadingProgress(file: any, index: any): {
|
|
468
|
-
[x: number]: {
|
|
469
|
-
percent: number;
|
|
470
|
-
message: string;
|
|
471
|
-
fileName: any;
|
|
472
|
-
error: null;
|
|
473
|
-
};
|
|
474
|
-
};
|
|
475
|
-
export declare function updateFileLoadingProgressUpdater(state: any, { fileName, progress }: {
|
|
476
|
-
fileName: any;
|
|
477
|
-
progress: any;
|
|
478
|
-
}): any;
|
|
479
|
-
/**
|
|
480
|
-
* Helper function to update layer domains for an array of datasets
|
|
481
|
-
*/
|
|
482
|
-
export declare function updateAllLayerDomainData(state: VisState, dataId: string | string[], updatedFilter?: Filter): VisState;
|
|
483
|
-
export declare function updateAnimationDomain<S extends VisState>(state: S): S;
|
|
484
|
-
/**
|
|
485
|
-
* Update the status of the editor
|
|
486
|
-
* @memberof visStateUpdaters
|
|
487
|
-
*/
|
|
488
|
-
export declare const setEditorModeUpdater: (state: VisState, { mode }: VisStateActions.SetEditorModeUpdaterAction) => VisState;
|
|
489
|
-
/**
|
|
490
|
-
* Update editor features
|
|
491
|
-
* @memberof visStateUpdaters
|
|
492
|
-
*/
|
|
493
|
-
export declare function setFeaturesUpdater(state: VisState, { features }: VisStateActions.SetFeaturesUpdaterAction): VisState;
|
|
494
|
-
/**
|
|
495
|
-
* Set the current selected feature
|
|
496
|
-
* @memberof uiStateUpdaters
|
|
497
|
-
*/
|
|
498
|
-
export declare const setSelectedFeatureUpdater: (state: VisState, { feature, selectionContext }: VisStateActions.SetSelectedFeatureUpdaterAction) => VisState;
|
|
499
|
-
/**
|
|
500
|
-
* Delete existing feature from filters
|
|
501
|
-
* @memberof visStateUpdaters
|
|
502
|
-
*/
|
|
503
|
-
export declare function deleteFeatureUpdater(state: VisState, { feature }: VisStateActions.DeleteFeatureUpdaterAction): VisState;
|
|
504
|
-
/**
|
|
505
|
-
* Toggle feature as layer filter
|
|
506
|
-
* @memberof visStateUpdaters
|
|
507
|
-
*/
|
|
508
|
-
export declare function setPolygonFilterLayerUpdater(state: VisState, payload: VisStateActions.SetPolygonFilterLayerUpdaterAction): VisState;
|
|
509
|
-
/**
|
|
510
|
-
* @memberof visStateUpdaters
|
|
511
|
-
* @public
|
|
512
|
-
*/
|
|
513
|
-
export declare function sortTableColumnUpdater(state: VisState, { dataId, column, mode }: VisStateActions.SortTableColumnUpdaterAction): VisState;
|
|
514
|
-
/**
|
|
515
|
-
* @memberof visStateUpdaters
|
|
516
|
-
* @public
|
|
517
|
-
*/
|
|
518
|
-
export declare function pinTableColumnUpdater(state: VisState, { dataId, column }: VisStateActions.PinTableColumnUpdaterAction): VisState;
|
|
519
|
-
/**
|
|
520
|
-
* Copy column content as strings
|
|
521
|
-
* @memberof visStateUpdaters
|
|
522
|
-
* @public
|
|
523
|
-
*/
|
|
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;
|
|
531
|
-
/**
|
|
532
|
-
* Update editor
|
|
533
|
-
*/
|
|
534
|
-
export declare function toggleEditorVisibilityUpdater(state: VisState, action: VisStateActions.ToggleEditorVisibilityUpdaterAction): VisState;
|
|
535
|
-
export declare function setFilterAnimationTimeConfigUpdater(state: VisState, { idx, config }: VisStateActions.SetFilterAnimationTimeConfigAction): VisState;
|
|
536
|
-
/**
|
|
537
|
-
* Update editor
|
|
538
|
-
*/
|
|
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 {};
|