@kepler.gl/actions 3.3.0-alpha.2 → 3.3.0-alpha.21

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.
Files changed (57) hide show
  1. package/dist/action-types.d.ts +103 -1
  2. package/dist/action-wrapper.d.ts +22 -17
  3. package/dist/actions.d.ts +13 -0
  4. package/dist/cjs/action-types.js +266 -0
  5. package/dist/cjs/action-types.js.map +1 -0
  6. package/dist/cjs/action-wrapper.js +177 -0
  7. package/dist/cjs/action-wrapper.js.map +1 -0
  8. package/dist/cjs/actions.js +193 -0
  9. package/dist/cjs/actions.js.map +1 -0
  10. package/dist/cjs/identity-actions.js +86 -0
  11. package/dist/cjs/identity-actions.js.map +1 -0
  12. package/dist/cjs/index.js +182 -0
  13. package/dist/cjs/index.js.map +1 -0
  14. package/dist/cjs/map-state-actions.js +174 -0
  15. package/dist/cjs/map-state-actions.js.map +1 -0
  16. package/dist/cjs/map-style-actions.js +211 -0
  17. package/dist/cjs/map-style-actions.js.map +1 -0
  18. package/dist/cjs/provider-actions.js +99 -0
  19. package/dist/cjs/provider-actions.js.map +1 -0
  20. package/dist/cjs/ui-state-actions.js +463 -0
  21. package/dist/cjs/ui-state-actions.js.map +1 -0
  22. package/dist/cjs/vis-state-actions.js +1859 -0
  23. package/dist/cjs/vis-state-actions.js.map +1 -0
  24. package/dist/esm/action-types.js +260 -0
  25. package/dist/esm/action-types.js.map +1 -0
  26. package/dist/esm/action-wrapper.js +171 -0
  27. package/dist/esm/action-wrapper.js.map +1 -0
  28. package/dist/esm/actions.js +186 -0
  29. package/dist/esm/actions.js.map +1 -0
  30. package/dist/esm/identity-actions.js +79 -0
  31. package/dist/esm/identity-actions.js.map +1 -0
  32. package/dist/esm/index.js +27 -0
  33. package/dist/esm/index.js.map +1 -0
  34. package/dist/esm/map-state-actions.js +167 -0
  35. package/dist/esm/map-state-actions.js.map +1 -0
  36. package/dist/esm/map-style-actions.js +204 -0
  37. package/dist/esm/map-style-actions.js.map +1 -0
  38. package/dist/esm/provider-actions.js +93 -0
  39. package/dist/esm/provider-actions.js.map +1 -0
  40. package/dist/esm/ui-state-actions.js +456 -0
  41. package/dist/esm/ui-state-actions.js.map +1 -0
  42. package/dist/esm/vis-state-actions.js +1728 -0
  43. package/dist/esm/vis-state-actions.js.map +1 -0
  44. package/dist/map-state-actions.d.ts +51 -3
  45. package/dist/ui-state-actions.d.ts +77 -2
  46. package/dist/vis-state-actions.d.ts +573 -21
  47. package/package.json +25 -22
  48. package/dist/action-types.js +0 -213
  49. package/dist/action-wrapper.js +0 -174
  50. package/dist/actions.js +0 -187
  51. package/dist/identity-actions.js +0 -86
  52. package/dist/index.js +0 -183
  53. package/dist/map-state-actions.js +0 -129
  54. package/dist/map-style-actions.js +0 -211
  55. package/dist/provider-actions.js +0 -99
  56. package/dist/ui-state-actions.js +0 -388
  57. package/dist/vis-state-actions.js +0 -1299
@@ -0,0 +1,1859 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.addAnnotation = addAnnotation;
8
+ exports.addChart = addChart;
9
+ exports.addEffect = addEffect;
10
+ exports.addFilter = addFilter;
11
+ exports.addGroupBy = addGroupBy;
12
+ exports.addJoin = addJoin;
13
+ exports.addLayer = addLayer;
14
+ exports.addLayerGroup = addLayerGroup;
15
+ exports.addLayerToLayerGroup = addLayerToLayerGroup;
16
+ exports.addSpatialJoin = addSpatialJoin;
17
+ exports.addSuitability = addSuitability;
18
+ exports.addToDataset = addToDataset;
19
+ exports.appendStagedLoadedFiles = appendStagedLoadedFiles;
20
+ exports.applyCPUFilter = applyCPUFilter;
21
+ exports.applyFilterConfig = applyFilterConfig;
22
+ exports.applyLayerConfig = applyLayerConfig;
23
+ exports.changeTableColumnType = changeTableColumnType;
24
+ exports.clearStagedLoadedFiles = clearStagedLoadedFiles;
25
+ exports.confirmReplaceDataset = confirmReplaceDataset;
26
+ exports.convertEditorFeaturesToLayer = convertEditorFeaturesToLayer;
27
+ exports.copyTableColumn = copyTableColumn;
28
+ exports.createNewDatasetSuccess = void 0;
29
+ exports.createOrUpdateFilter = createOrUpdateFilter;
30
+ exports.deleteFeature = deleteFeature;
31
+ exports.deleteTableColumn = deleteTableColumn;
32
+ exports.duplicateAnnotation = duplicateAnnotation;
33
+ exports.duplicateLayer = duplicateLayer;
34
+ exports.expandZipArchiveSuccess = expandZipArchiveSuccess;
35
+ exports.extractDataFromFeature = extractDataFromFeature;
36
+ exports.interactionConfigChange = interactionConfigChange;
37
+ exports.layerColorUIChange = layerColorUIChange;
38
+ exports.layerConfigChange = layerConfigChange;
39
+ exports.layerFilteredItemsChange = layerFilteredItemsChange;
40
+ exports.layerSetIsValid = layerSetIsValid;
41
+ exports.layerTextLabelChange = layerTextLabelChange;
42
+ exports.layerToggleVisibility = layerToggleVisibility;
43
+ exports.layerTypeChange = layerTypeChange;
44
+ exports.layerVisConfigChange = layerVisConfigChange;
45
+ exports.layerVisualChannelConfigChange = layerVisualChannelConfigChange;
46
+ exports.loadColumnStats = loadColumnStats;
47
+ exports.loadColumnStatsError = loadColumnStatsError;
48
+ exports.loadColumnStatsSuccess = loadColumnStatsSuccess;
49
+ exports.loadFileStepSuccess = loadFileStepSuccess;
50
+ exports.loadFiles = loadFiles;
51
+ exports.loadFilesErr = loadFilesErr;
52
+ exports.loadFilesSuccess = loadFilesSuccess;
53
+ exports.loadNextFile = loadNextFile;
54
+ exports.nextFileBatch = nextFileBatch;
55
+ exports.onLayerClick = onLayerClick;
56
+ exports.onLayerHover = onLayerHover;
57
+ exports.onMapClick = onMapClick;
58
+ exports.onMouseMove = onMouseMove;
59
+ exports.pinTableColumn = pinTableColumn;
60
+ exports.processFileContent = processFileContent;
61
+ exports.refreshDataset = refreshDataset;
62
+ exports.refreshDatasetError = refreshDatasetError;
63
+ exports.refreshDatasetProgress = refreshDatasetProgress;
64
+ exports.refreshDatasetSuccess = refreshDatasetSuccess;
65
+ exports.removeAnnotation = removeAnnotation;
66
+ exports.removeChart = removeChart;
67
+ exports.removeDataset = removeDataset;
68
+ exports.removeDatasetOp = removeDatasetOp;
69
+ exports.removeEffect = removeEffect;
70
+ exports.removeFilter = removeFilter;
71
+ exports.removeFromDataset = removeFromDataset;
72
+ exports.removeLayer = removeLayer;
73
+ exports.removeLayerFromLayerGroup = removeLayerFromLayerGroup;
74
+ exports.removeLayerGroup = removeLayerGroup;
75
+ exports.renameDataset = renameDataset;
76
+ exports.renameTableColumn = renameTableColumn;
77
+ exports.reorderEffect = reorderEffect;
78
+ exports.reorderLayer = reorderLayer;
79
+ exports.runGroupBy = runGroupBy;
80
+ exports.runJoin = runJoin;
81
+ exports.runSpatialJoin = runSpatialJoin;
82
+ exports.runSuitability = runSuitability;
83
+ exports.setAnimationConfig = setAnimationConfig;
84
+ exports.setCameraTour = exports.setCameraBookmarks = void 0;
85
+ exports.setColumnDisplayFormat = setColumnDisplayFormat;
86
+ exports.setEditorFeatureProperties = setEditorFeatureProperties;
87
+ exports.setEditorMode = setEditorMode;
88
+ exports.setFeatures = setFeatures;
89
+ exports.setFilter = setFilter;
90
+ exports.setFilterAnimationTime = setFilterAnimationTime;
91
+ exports.setFilterAnimationTimeConfig = setFilterAnimationTimeConfig;
92
+ exports.setFilterAnimationWindow = setFilterAnimationWindow;
93
+ exports.setFilterPlot = setFilterPlot;
94
+ exports.setFilterView = setFilterView;
95
+ exports.setGroupByConfig = setGroupByConfig;
96
+ exports.setJoinConfig = setJoinConfig;
97
+ exports.setLayerAnimationTime = setLayerAnimationTime;
98
+ exports.setLayerAnimationTimeConfig = setLayerAnimationTimeConfig;
99
+ exports.setLoadingIndicator = void 0;
100
+ exports.setLoadingProgress = setLoadingProgress;
101
+ exports.setMapInfo = setMapInfo;
102
+ exports.setPolygonFilterAllLayers = setPolygonFilterAllLayers;
103
+ exports.setPolygonFilterLayer = setPolygonFilterLayer;
104
+ exports.setSelectedAnnotation = setSelectedAnnotation;
105
+ exports.setSelectedFeature = setSelectedFeature;
106
+ exports.setSpatialJoinConfig = setSpatialJoinConfig;
107
+ exports.setSuitabilityConfig = setSuitabilityConfig;
108
+ exports.setTimeFilterSyncTimelineMode = setTimeFilterSyncTimelineMode;
109
+ exports.showAllTableColumns = showAllTableColumns;
110
+ exports.showDatasetTable = showDatasetTable;
111
+ exports.sortTableColumn = sortTableColumn;
112
+ exports.stageLoadedFiles = stageLoadedFiles;
113
+ exports.swapLayerOrderEntries = swapLayerOrderEntries;
114
+ exports.syncTimeFilterWithLayerTimeline = syncTimeFilterWithLayerTimeline;
115
+ exports.toggleEditorVisibility = toggleEditorVisibility;
116
+ exports.toggleFilterAnimation = toggleFilterAnimation;
117
+ exports.toggleFilterFeature = toggleFilterFeature;
118
+ exports.toggleLayerAnimation = toggleLayerAnimation;
119
+ exports.toggleLayerAnimationControl = toggleLayerAnimationControl;
120
+ exports.toggleLayerForMap = toggleLayerForMap;
121
+ exports.toggleTableColumnHidden = toggleTableColumnHidden;
122
+ exports.updateAnnotation = updateAnnotation;
123
+ exports.updateChart = updateChart;
124
+ exports.updateDataset = updateDataset;
125
+ exports.updateDatasetProps = updateDatasetProps;
126
+ exports.updateEffect = updateEffect;
127
+ exports.updateFilterAnimationSpeed = updateFilterAnimationSpeed;
128
+ exports.updateLayerAnimationSpeed = updateLayerAnimationSpeed;
129
+ exports.updateLayerBlending = updateLayerBlending;
130
+ exports.updateLayerGroup = updateLayerGroup;
131
+ exports.updateOverlayBlending = updateOverlayBlending;
132
+ exports.updateTableColor = updateTableColor;
133
+ exports.updateVisData = updateVisData;
134
+ exports.wmsFeatureInfo = wmsFeatureInfo;
135
+ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
136
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
137
+ var _actionTypes = _interopRequireDefault(require("./action-types"));
138
+ var _toolkit = require("@reduxjs/toolkit");
139
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
140
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } // SPDX-License-Identifier: MIT
141
+ // Copyright contributors to the kepler.gl project
142
+ // vis-state-reducer
143
+ // TODO - import LoaderObject type from @loaders.gl/core when supported
144
+ // TODO - import LoadOptions type from @loaders.gl/core when supported
145
+
146
+ /**
147
+ * Update layer base config: dataId, label, column, isVisible
148
+ * @param oldLayerId - layer id to be updated
149
+ * @param newLayerConfig - new layer config
150
+ * @param layerIndex - (Optional) Index of the layer to be updated (can be useful in some cases, because
151
+ * the layer id might change during update, e.g. when the type of the layer changes)
152
+ * @returns action
153
+ * @public
154
+ */
155
+ function applyLayerConfig(oldLayerId, newLayerConfig, layerIndex) {
156
+ return {
157
+ type: _actionTypes["default"].APPLY_LAYER_CONFIG,
158
+ oldLayerId: oldLayerId,
159
+ newLayerConfig: newLayerConfig,
160
+ layerIndex: layerIndex
161
+ };
162
+ }
163
+ /**
164
+ * Update layer base config: dataId, label, column, isVisible
165
+ * @param oldLayer - layer to be updated
166
+ * @param newConfig - new config to be merged with old config
167
+ * @returns action
168
+ * @public
169
+ */
170
+ function layerConfigChange(oldLayer, newConfig) {
171
+ return {
172
+ type: _actionTypes["default"].LAYER_CONFIG_CHANGE,
173
+ oldLayer: oldLayer,
174
+ newConfig: newConfig
175
+ };
176
+ }
177
+ /**
178
+ * Update layer visibility depends on splitMap single or dual
179
+ * @param layerId - layerId to be updated
180
+ * @param isVisible - whether this layer is visible globally
181
+ * @param splitMapId - id for this splitMap
182
+ * @returns action
183
+ * @public
184
+ */
185
+ function layerToggleVisibility(layerId, isVisible, splitMapId) {
186
+ return {
187
+ type: _actionTypes["default"].LAYER_TOGGLE_VISIBILITY,
188
+ layerId: layerId,
189
+ isVisible: isVisible,
190
+ splitMapId: splitMapId
191
+ };
192
+ }
193
+ /**
194
+ * Update layer text label
195
+ * @param oldLayer - layer to be updated
196
+ * @param idx -`idx` of text label to be updated
197
+ * @param prop - `prop` of text label, e,g, `anchor`, `alignment`, `color`, `size`, `field`, `outlineWidth`, `outlineColor`
198
+ * @param value - new value
199
+ * @returns action
200
+ * @public
201
+ */
202
+ function layerTextLabelChange(oldLayer, idx, prop, value) {
203
+ return {
204
+ type: _actionTypes["default"].LAYER_TEXT_LABEL_CHANGE,
205
+ oldLayer: oldLayer,
206
+ idx: idx,
207
+ prop: prop,
208
+ value: value
209
+ };
210
+ }
211
+ /**
212
+ * Changes value of isValid flag for a layer.
213
+ * The action also updates visibility of the layer based on isValid.
214
+ * @param oldLayer - layer to be updated
215
+ * @param isValid - new value for isValid flag
216
+ * @returns action
217
+ * @public
218
+ */
219
+ function layerSetIsValid(oldLayer, isValid) {
220
+ return {
221
+ type: _actionTypes["default"].LAYER_SET_IS_VALID,
222
+ oldLayer: oldLayer,
223
+ isValid: isValid
224
+ };
225
+ }
226
+ /**
227
+ * Update layer type. Previews layer config will be copied if applicable.
228
+ * @param oldLayer - layer to be updated
229
+ * @param newType - new type
230
+ * @param options.fitBounds fit the map when the layer type dropdown gives an empty layer its first type
231
+ * @returns action
232
+ * @public
233
+ */
234
+ function layerTypeChange(oldLayer, newType, options) {
235
+ return _objectSpread({
236
+ type: _actionTypes["default"].LAYER_TYPE_CHANGE,
237
+ oldLayer: oldLayer,
238
+ newType: newType
239
+ }, options !== null && options !== void 0 && options.fitBounds ? {
240
+ fitBounds: true
241
+ } : {});
242
+ }
243
+ /**
244
+ * Update layer visual channel
245
+ * @memberof visStateActions
246
+ * @param oldLayer - layer to be updated
247
+ * @param newConfig - new visual channel config
248
+ * @param channel - channel to be updated
249
+ * @returns action
250
+ * @public
251
+ */
252
+ function layerVisualChannelConfigChange(oldLayer, newConfig, channel, newVisConfig) {
253
+ return {
254
+ type: _actionTypes["default"].LAYER_VISUAL_CHANNEL_CHANGE,
255
+ oldLayer: oldLayer,
256
+ newConfig: newConfig,
257
+ channel: channel,
258
+ newVisConfig: newVisConfig
259
+ };
260
+ }
261
+ /**
262
+ * Update layer `visConfig`
263
+ * @memberof visStateActions
264
+ * @param oldLayer - layer to be updated
265
+ * @param newVisConfig - new visConfig as a key value map: e.g. `{opacity: 0.8}`
266
+ * @returns action
267
+ * @public
268
+ */
269
+ function layerVisConfigChange(oldLayer, newVisConfig) {
270
+ return {
271
+ type: _actionTypes["default"].LAYER_VIS_CONFIG_CHANGE,
272
+ oldLayer: oldLayer,
273
+ newVisConfig: newVisConfig
274
+ };
275
+ }
276
+ /**
277
+ * Set the color palette ui for layer color
278
+ * @memberof visStateActions
279
+ * @param oldLayer - layer to be updated
280
+ * @param prop - which color prop
281
+ * @param newConfig - to be merged
282
+ * @returns action
283
+ * @public
284
+ */
285
+ function layerColorUIChange(oldLayer, prop, newConfig) {
286
+ return {
287
+ type: _actionTypes["default"].LAYER_COLOR_UI_CHANGE,
288
+ oldLayer: oldLayer,
289
+ prop: prop,
290
+ newConfig: newConfig
291
+ };
292
+ }
293
+ /**
294
+ * Update layer blending mode
295
+ * @memberof visStateActions
296
+ * @param mode one of `additive`, `normal` and `subtractive`
297
+ * @returns action
298
+ * @public
299
+ */
300
+ function updateLayerBlending(mode) {
301
+ return {
302
+ type: _actionTypes["default"].UPDATE_LAYER_BLENDING,
303
+ mode: mode
304
+ };
305
+ }
306
+ /**
307
+ * Update overlay blending mode
308
+ * @memberof visStateActions
309
+ * @param mode one of `screen`, `normal` and `darken`
310
+ * @returns action
311
+ * @public
312
+ */
313
+ function updateOverlayBlending(mode) {
314
+ return {
315
+ type: _actionTypes["default"].UPDATE_OVERLAY_BLENDING,
316
+ mode: mode
317
+ };
318
+ }
319
+ /**
320
+ * Update `interactionConfig`
321
+ * @memberof visStateActions
322
+ * @param config - new config as key value map: `{tooltip: {enabled: true}}`
323
+ * @returns action
324
+ * @public
325
+ */
326
+ function interactionConfigChange(config) {
327
+ return {
328
+ type: _actionTypes["default"].INTERACTION_CONFIG_CHANGE,
329
+ config: config
330
+ };
331
+ }
332
+ /**
333
+ * Update filter config
334
+ * @param filterId - id of the filter to be updated
335
+ * @param newFilter - new filter config
336
+ * @returns action
337
+ * @public
338
+ */
339
+ function applyFilterConfig(filterId, newFilter) {
340
+ return {
341
+ type: _actionTypes["default"].APPLY_FILTER_CONFIG,
342
+ filterId: filterId,
343
+ newFilter: newFilter
344
+ };
345
+ }
346
+ /**
347
+ * Update filter property
348
+ * @memberof visStateActions
349
+ * @param idx -`idx` of filter to be updated
350
+ * @param prop - `prop` of filter, e,g, `dataId`, `name`, `value`
351
+ * or an array e.g. ['idx', 'name']. in that case the value
352
+ * should also be an array of the corresponding values (by index)
353
+ * @param value - new value
354
+ * @param valueIndex - dataId index
355
+ * @returns action
356
+ * @public
357
+ */
358
+ function setFilter(idx, prop, value, valueIndex) {
359
+ return {
360
+ type: _actionTypes["default"].SET_FILTER,
361
+ idx: idx,
362
+ prop: prop,
363
+ value: value,
364
+ valueIndex: valueIndex
365
+ };
366
+ }
367
+ /**
368
+ * Same as Update filter
369
+ * @memberof visStateActions
370
+ * @param idx -`idx` of filter to be updated
371
+ * @param prop - `prop` of filter, e,g, `dataId`, `name`, `value`
372
+ * @param value - new value
373
+ * @param valueIndex - dataId index
374
+ * @returns action
375
+ * @public
376
+ */
377
+ function setFilterAnimationTime(idx, prop, value, valueIndex) {
378
+ return {
379
+ type: _actionTypes["default"].SET_FILTER_ANIMATION_TIME,
380
+ idx: idx,
381
+ prop: prop,
382
+ value: value,
383
+ valueIndex: valueIndex
384
+ };
385
+ }
386
+ /**
387
+ * Same as Update filter
388
+ * @memberof visStateActions
389
+ * @public
390
+ */
391
+ function setFilterAnimationWindow(_ref) {
392
+ var id = _ref.id,
393
+ animationWindow = _ref.animationWindow;
394
+ return {
395
+ type: _actionTypes["default"].SET_FILTER_ANIMATION_WINDOW,
396
+ id: id,
397
+ animationWindow: animationWindow
398
+ };
399
+ }
400
+ /**
401
+ * Add a new filter
402
+ * @memberof visStateActions
403
+ * @param dataId - dataset `id` this new filter is associated with
404
+ * @param id - `id` for the new filter
405
+ * @returns action
406
+ * @public
407
+ */
408
+ function addFilter(dataId, id) {
409
+ return {
410
+ type: _actionTypes["default"].ADD_FILTER,
411
+ dataId: dataId,
412
+ id: id
413
+ };
414
+ }
415
+ /**
416
+ * Create or updates a filter
417
+ * @memberof visStateActions
418
+ * @param dataId - dataset `id` this new filter is associated with
419
+ * @returns action
420
+ * @public
421
+ */
422
+ function createOrUpdateFilter(id, dataId, field, value) {
423
+ return {
424
+ type: _actionTypes["default"].CREATE_OR_UPDATE_FILTER,
425
+ id: id,
426
+ dataId: dataId,
427
+ field: field,
428
+ value: value
429
+ };
430
+ }
431
+ /**
432
+ * Add a new layer
433
+ * @memberof visStateActions
434
+ * @param config - new layer config
435
+ * @param datasetId - dataset id used for creating an empty layer
436
+ * @returns action
437
+ * @public
438
+ */
439
+ function addLayer(config, datasetId) {
440
+ return {
441
+ type: _actionTypes["default"].ADD_LAYER,
442
+ config: config,
443
+ datasetId: datasetId
444
+ };
445
+ }
446
+ /**
447
+ * Reorder layer, order is an array of layer indexes, index 0 will be the one at the bottom
448
+ * @memberof visStateActions
449
+ * @param order an array of layer indexes
450
+ * @returns action
451
+ * @public
452
+ * @example
453
+ *
454
+ * bring `layers[1]` below `layers[0]`, the sequence layers will be rendered is `layers[1].id`, `layers[0].id`, `layers[2].id`, `layers[3].id`.
455
+ * `layers[1]` will be at the bottom, `layers[13]` will be at the top.
456
+ * this.props.dispatch(reorderLayer([`layers[1].id`, `layers[0].id`, `layers[2].id`, `layers[3].id`]));
457
+ */
458
+ function reorderLayer(order) {
459
+ return {
460
+ type: _actionTypes["default"].REORDER_LAYER,
461
+ order: order
462
+ };
463
+ }
464
+ function addLayerGroup(payload) {
465
+ return _objectSpread({
466
+ type: _actionTypes["default"].ADD_LAYER_GROUP
467
+ }, payload);
468
+ }
469
+ function removeLayerGroup(payload) {
470
+ return _objectSpread({
471
+ type: _actionTypes["default"].REMOVE_LAYER_GROUP
472
+ }, payload);
473
+ }
474
+ function updateLayerGroup(payload) {
475
+ return _objectSpread({
476
+ type: _actionTypes["default"].UPDATE_LAYER_GROUP
477
+ }, payload);
478
+ }
479
+ function addLayerToLayerGroup(payload) {
480
+ return _objectSpread({
481
+ type: _actionTypes["default"].ADD_LAYER_TO_LAYER_GROUP
482
+ }, payload);
483
+ }
484
+ function removeLayerFromLayerGroup(payload) {
485
+ return _objectSpread({
486
+ type: _actionTypes["default"].REMOVE_LAYER_FROM_LAYER_GROUP
487
+ }, payload);
488
+ }
489
+ function swapLayerOrderEntries(payload) {
490
+ return _objectSpread({
491
+ type: _actionTypes["default"].SWAP_LAYER_ORDER_ENTRIES
492
+ }, payload);
493
+ }
494
+ /**
495
+ * Remove a filter from `visState.filters`, once a filter is removed, data will be re-filtered and layer will be updated
496
+ * @memberof visStateActions
497
+ * @param idx idx of filter to be removed
498
+ * @returns action
499
+ * @public
500
+ */
501
+ function removeFilter(idx) {
502
+ return {
503
+ type: _actionTypes["default"].REMOVE_FILTER,
504
+ idx: idx
505
+ };
506
+ }
507
+ /**
508
+ * Remove a layer
509
+ * @memberof visStateActions
510
+ * @param id idx of layer to be removed
511
+ * @returns action
512
+ * @public
513
+ */
514
+ function removeLayer(id) {
515
+ return {
516
+ type: _actionTypes["default"].REMOVE_LAYER,
517
+ id: id
518
+ };
519
+ }
520
+ /**
521
+ * Duplicate a layer
522
+ * @memberof visStateActions
523
+ * @param id id of layer to be duplicated
524
+ * @returns action
525
+ * @public
526
+ */
527
+ function duplicateLayer(id) {
528
+ return {
529
+ type: _actionTypes["default"].DUPLICATE_LAYER,
530
+ id: id
531
+ };
532
+ }
533
+ /**
534
+ * Add a new effect
535
+ * @memberof visStateActions
536
+ * @param config - new effect config
537
+ * @returns action
538
+ * @public
539
+ */
540
+ function addEffect(config) {
541
+ return {
542
+ type: _actionTypes["default"].ADD_EFFECT,
543
+ config: config
544
+ };
545
+ }
546
+ /**
547
+ * Reorder effects
548
+ * @memberof visStateActions
549
+ * @param order an array of effect ids
550
+ * @returns action
551
+ * @public
552
+ */
553
+ function reorderEffect(order) {
554
+ return {
555
+ type: _actionTypes["default"].REORDER_EFFECT,
556
+ order: order
557
+ };
558
+ }
559
+ /**
560
+ * Remove an effect
561
+ * @memberof visStateActions
562
+ * @param id idx of the effect to be removed
563
+ * @returns action
564
+ * @public
565
+ */
566
+ function removeEffect(id) {
567
+ return {
568
+ type: _actionTypes["default"].REMOVE_EFFECT,
569
+ id: id
570
+ };
571
+ }
572
+ /**
573
+ * Update an effect
574
+ * @memberof visStateActions
575
+ * @param props idx of the effect to be updated with specified props
576
+ * @returns action
577
+ * @public
578
+ */
579
+ function updateEffect(id, props) {
580
+ return {
581
+ type: _actionTypes["default"].UPDATE_EFFECT,
582
+ id: id,
583
+ props: props
584
+ };
585
+ }
586
+
587
+ // Chart Actions
588
+
589
+ /**
590
+ * Add a chart to the charts panel
591
+ * @memberof visStateActions
592
+ * @param chart - chart config
593
+ * @returns action
594
+ * @public
595
+ */
596
+ function addChart(chart) {
597
+ return {
598
+ type: _actionTypes["default"].ADD_CHART,
599
+ chart: chart
600
+ };
601
+ }
602
+ /**
603
+ * Update a chart
604
+ * @memberof visStateActions
605
+ * @param id - chart id
606
+ * @param props - partial chart config
607
+ * @returns action
608
+ * @public
609
+ */
610
+ function updateChart(id, props) {
611
+ return {
612
+ type: _actionTypes["default"].UPDATE_CHART,
613
+ id: id,
614
+ props: props
615
+ };
616
+ }
617
+ /**
618
+ * Remove a chart
619
+ * @memberof visStateActions
620
+ * @param id - chart id
621
+ * @returns action
622
+ * @public
623
+ */
624
+ function removeChart(id) {
625
+ return {
626
+ type: _actionTypes["default"].REMOVE_CHART,
627
+ id: id
628
+ };
629
+ }
630
+
631
+ /** Replace the ordered collection of saved camera bookmarks. */
632
+ var setCameraBookmarks = exports.setCameraBookmarks = (0, _toolkit.createAction)(_actionTypes["default"].SET_CAMERA_BOOKMARKS);
633
+
634
+ /** Replace the single authored camera tour; null removes it. */
635
+ var setCameraTour = exports.setCameraTour = (0, _toolkit.createAction)(_actionTypes["default"].SET_CAMERA_TOUR);
636
+
637
+ // Annotation Actions
638
+
639
+ /**
640
+ * Add a new annotation
641
+ * @memberof visStateActions
642
+ * @param config - new annotation config
643
+ * @returns action
644
+ * @public
645
+ */
646
+ function addAnnotation(config) {
647
+ return {
648
+ type: _actionTypes["default"].ADD_ANNOTATION,
649
+ config: config
650
+ };
651
+ }
652
+ /**
653
+ * Remove an annotation
654
+ * @memberof visStateActions
655
+ * @param id id of the annotation to be removed
656
+ * @returns action
657
+ * @public
658
+ */
659
+ function removeAnnotation(id) {
660
+ return {
661
+ type: _actionTypes["default"].REMOVE_ANNOTATION,
662
+ id: id
663
+ };
664
+ }
665
+ /**
666
+ * Update an annotation
667
+ * @memberof visStateActions
668
+ * @param id id of the annotation to be updated
669
+ * @param config partial annotation config to merge
670
+ * @returns action
671
+ * @public
672
+ */
673
+ function updateAnnotation(id, config) {
674
+ return {
675
+ type: _actionTypes["default"].UPDATE_ANNOTATION,
676
+ id: id,
677
+ config: config
678
+ };
679
+ }
680
+ /**
681
+ * Duplicate an annotation
682
+ * @memberof visStateActions
683
+ * @param id id of the annotation to be duplicated
684
+ * @returns action
685
+ * @public
686
+ */
687
+ function duplicateAnnotation(id) {
688
+ return {
689
+ type: _actionTypes["default"].DUPLICATE_ANNOTATION,
690
+ id: id
691
+ };
692
+ }
693
+ /**
694
+ * Set the selected annotation
695
+ * @memberof visStateActions
696
+ * @param id id of annotation to select, or null to deselect
697
+ * @param isEditingText whether the text of the annotation is being edited
698
+ * @returns action
699
+ * @public
700
+ */
701
+ function setSelectedAnnotation(id, isEditingText) {
702
+ return {
703
+ type: _actionTypes["default"].SET_SELECTED_ANNOTATION,
704
+ id: id,
705
+ isEditingText: isEditingText
706
+ };
707
+ }
708
+ /**
709
+ * Remove a dataset and all layers, filters, tooltip configs that based on it
710
+ * @memberof visStateActions
711
+ * @param dataId dataset id
712
+ * @returns action
713
+ * @public
714
+ */
715
+ function removeDataset(dataId) {
716
+ return {
717
+ type: _actionTypes["default"].REMOVE_DATASET,
718
+ dataId: dataId
719
+ };
720
+ }
721
+ /**
722
+ * Display dataset table in a modal
723
+ * @memberof visStateActions
724
+ * @param dataId dataset id to show in table
725
+ * @returns action
726
+ * @public
727
+ */
728
+ function showDatasetTable(dataId) {
729
+ return {
730
+ type: _actionTypes["default"].SHOW_DATASET_TABLE,
731
+ dataId: dataId
732
+ };
733
+ }
734
+ /**
735
+ * Update dataset color to custom by means of color picker
736
+ * @memberof visStateActions
737
+ * @param dataId dataset `id` this custom color is associated with
738
+ * @param newColor custom color in RGBformat
739
+ * @returns action
740
+ * @public
741
+ */
742
+ function updateTableColor(dataId, newColor) {
743
+ return {
744
+ type: _actionTypes["default"].UPDATE_TABLE_COLOR,
745
+ dataId: dataId,
746
+ newColor: newColor
747
+ };
748
+ }
749
+ /**
750
+ * Re-fetch an externally hosted dataset from its source URL.
751
+ * @memberof visStateActions
752
+ * @param dataId dataset id
753
+ * @returns action
754
+ * @public
755
+ */
756
+ function refreshDataset(dataId) {
757
+ return {
758
+ type: _actionTypes["default"].REFRESH_DATASET,
759
+ dataId: dataId
760
+ };
761
+ }
762
+ /**
763
+ * Apply a successful remote dataset refresh.
764
+ * @memberof visStateActions
765
+ * @returns action
766
+ */
767
+ function refreshDatasetSuccess(dataId, result) {
768
+ return {
769
+ type: _actionTypes["default"].REFRESH_DATASET_SUCCESS,
770
+ dataId: dataId,
771
+ result: result
772
+ };
773
+ }
774
+ /**
775
+ * Record a failed remote dataset refresh.
776
+ * @memberof visStateActions
777
+ * @returns action
778
+ */
779
+ function refreshDatasetError(dataId, error) {
780
+ return {
781
+ type: _actionTypes["default"].REFRESH_DATASET_ERROR,
782
+ dataId: dataId,
783
+ error: error
784
+ };
785
+ }
786
+ /**
787
+ * Update download progress for an in-flight remote dataset refresh (0–100).
788
+ * @memberof visStateActions
789
+ * @returns action
790
+ */
791
+ function refreshDatasetProgress(dataId, percent) {
792
+ return {
793
+ type: _actionTypes["default"].REFRESH_DATASET_PROGRESS,
794
+ dataId: dataId,
795
+ percent: percent
796
+ };
797
+ }
798
+
799
+ /**
800
+ * One dataset row: a column-ordered array (same as `ProtoDataset.data.rows`)
801
+ * or a field-name record. Missing keys become `null`.
802
+ */
803
+
804
+ /**
805
+ * Append rows to an existing in-memory row or Arrow dataset without `addDataToMap`.
806
+ * Keeps layer identity and style. Pass `options.upsertBy` to replace rows that
807
+ * share that key and append the rest.
808
+ *
809
+ * DuckDB tables (no INSERT yet) warn and leave the table unchanged. Arrow
810
+ * tables concat primitive columns in place; nested, binary, and geoarrow
811
+ * columns are rejected. Use `addDataToMap` with `keepExistingConfig` for a
812
+ * full replace.
813
+ * @memberof visStateActions
814
+ * @param dataId dataset id
815
+ * @param rows one row or an array of rows (arrays in field order, or objects keyed by field name)
816
+ * @param options optional `{upsertBy}` field name
817
+ * @returns action
818
+ * @public
819
+ */
820
+ function addToDataset(dataId, rows, options) {
821
+ return {
822
+ type: _actionTypes["default"].ADD_TO_DATASET,
823
+ dataId: dataId,
824
+ rows: rows,
825
+ options: options
826
+ };
827
+ }
828
+ /**
829
+ * Delete rows from an existing in-memory row or Arrow dataset without restyling layers.
830
+ * The second argument is either row indexes or `{field, values}` to match a
831
+ * column (e.g. an id). Out-of-range indexes are a no-op for the whole action.
832
+ *
833
+ * DuckDB tables warn and leave the table unchanged. Arrow tables concat the
834
+ * kept slices in place. For a full table replace use `addDataToMap` with
835
+ * `keepExistingConfig`.
836
+ * @memberof visStateActions
837
+ * @param dataId dataset id
838
+ * @param rowIndexesOrMatcher one index, an array of indexes, or `{field, values}`
839
+ * @returns action
840
+ * @public
841
+ */
842
+ function removeFromDataset(dataId, rowIndexesOrMatcher) {
843
+ if (rowIndexesOrMatcher && (0, _typeof2["default"])(rowIndexesOrMatcher) === 'object' && !Array.isArray(rowIndexesOrMatcher) && 'field' in rowIndexesOrMatcher) {
844
+ return {
845
+ type: _actionTypes["default"].REMOVE_FROM_DATASET,
846
+ dataId: dataId,
847
+ byField: rowIndexesOrMatcher
848
+ };
849
+ }
850
+ return {
851
+ type: _actionTypes["default"].REMOVE_FROM_DATASET,
852
+ dataId: dataId,
853
+ rowIndexes: rowIndexesOrMatcher
854
+ };
855
+ }
856
+ /**
857
+ * Sort dataset column, for table display
858
+ * @memberof visStateActions
859
+ * @param dataId
860
+ * @param column
861
+ * @param mode
862
+ * @returns action
863
+ * @public
864
+ */
865
+ function sortTableColumn(dataId, column, mode) {
866
+ return {
867
+ type: _actionTypes["default"].SORT_TABLE_COLUMN,
868
+ dataId: dataId,
869
+ column: column,
870
+ mode: mode
871
+ };
872
+ }
873
+ /**
874
+ * Pin dataset column, for table display
875
+ * @param dataId
876
+ * @param column
877
+ * @returns action
878
+ * @public
879
+ */
880
+ function pinTableColumn(dataId, column) {
881
+ return {
882
+ type: _actionTypes["default"].PIN_TABLE_COLUMN,
883
+ dataId: dataId,
884
+ column: column
885
+ };
886
+ }
887
+ /**
888
+ * Hide or show a dataset column in the attribute table and in data export.
889
+ * @param dataId
890
+ * @param column
891
+ * @returns action
892
+ * @public
893
+ */
894
+ function toggleTableColumnHidden(dataId, column) {
895
+ return {
896
+ type: _actionTypes["default"].TOGGLE_TABLE_COLUMN_HIDDEN,
897
+ dataId: dataId,
898
+ column: column
899
+ };
900
+ }
901
+ /**
902
+ * Show every attribute-table column that was hidden.
903
+ * @param dataId
904
+ * @returns action
905
+ * @public
906
+ */
907
+ function showAllTableColumns(dataId) {
908
+ return {
909
+ type: _actionTypes["default"].SHOW_ALL_TABLE_COLUMNS,
910
+ dataId: dataId
911
+ };
912
+ }
913
+ /**
914
+ * Copy column, for table display
915
+ * @param dataId
916
+ * @param column
917
+ * @returns action
918
+ * @public
919
+ */
920
+ function copyTableColumn(dataId, column) {
921
+ return {
922
+ type: _actionTypes["default"].COPY_TABLE_COLUMN,
923
+ dataId: dataId,
924
+ column: column
925
+ };
926
+ }
927
+ /**
928
+ * Set column display format
929
+ * @param dataId
930
+ * @param formats
931
+ * @returns action
932
+ * @public
933
+ */
934
+ function setColumnDisplayFormat(dataId, formats) {
935
+ return {
936
+ type: _actionTypes["default"].SET_COLUMN_DISPLAY_FORMAT,
937
+ dataId: dataId,
938
+ formats: formats
939
+ };
940
+ }
941
+ /**
942
+ * Lazily compute column statistics for the data table header.
943
+ * @param dataId
944
+ * @param fieldName one or more field names
945
+ * @returns action
946
+ * @public
947
+ */
948
+ function loadColumnStats(dataId, fieldName) {
949
+ return {
950
+ type: _actionTypes["default"].LOAD_COLUMN_STATS,
951
+ dataId: dataId,
952
+ fieldName: fieldName
953
+ };
954
+ }
955
+ /**
956
+ * Column statistics finished loading
957
+ * @returns action
958
+ * @public
959
+ */
960
+ function loadColumnStatsSuccess(dataId, fieldName, result, filterProps, request) {
961
+ return _objectSpread({
962
+ type: _actionTypes["default"].LOAD_COLUMN_STATS_SUCCESS,
963
+ dataId: dataId,
964
+ fieldName: fieldName,
965
+ result: result,
966
+ filterProps: filterProps
967
+ }, request);
968
+ }
969
+ /**
970
+ * Column statistics failed to load
971
+ * @returns action
972
+ * @public
973
+ */
974
+ function loadColumnStatsError(dataId, fieldName, error, request) {
975
+ return _objectSpread({
976
+ type: _actionTypes["default"].LOAD_COLUMN_STATS_ERROR,
977
+ dataId: dataId,
978
+ fieldName: fieldName,
979
+ error: error
980
+ }, request);
981
+ }
982
+ // * @param dataset.info -info of a dataset
983
+ // * @param dataset.info.id - id of this dataset. If config is defined, `id` should matches the `dataId` in config.
984
+ // * @param dataset.info.label - A display name of this dataset
985
+ // * @param dataset.data - ***required** The data object, in a tabular format with 2 properties `fields` and `rows`
986
+ // * @param dataset.data.fields - ***required** Array of fields,
987
+ // * @param dataset.data.fields.name - ***required** Name of the field,
988
+ // * @param dataset.data.rows - ***required** Array of rows, in a tabular format with `fields` and `rows`
989
+ /**
990
+ * Add new dataset to `visState`, with option to load a map config along with the datasets
991
+ * @memberof visStateActions
992
+ * @param datasets - ***required** datasets can be a dataset or an array of datasets
993
+ * Each dataset object needs to have `info` and `data` property.
994
+ * @param {object} options
995
+ * @param options.centerMap `default: true` if `centerMap` is set to `true` kepler.gl will
996
+ * place the map view within the data points boundaries
997
+ * @param options.padding padding in pixels applied when `centerMap` is true so data is not hidden
998
+ * under the side panel or other UI. Can be a number or `{top, bottom, left, right}`.
999
+ * @param options.readOnly `default: false` if `readOnly` is set to `true`
1000
+ * the left setting panel will be hidden
1001
+ * @param config this object will contain the full kepler.gl instance configuration {mapState, mapStyle, visState}
1002
+ * @returns action
1003
+ * @public
1004
+ */
1005
+ function updateVisData(datasets, options, config) {
1006
+ return {
1007
+ type: _actionTypes["default"].UPDATE_VIS_DATA,
1008
+ datasets: datasets,
1009
+ options: options,
1010
+ config: config
1011
+ };
1012
+ }
1013
+ /**
1014
+ * Rename an existing dataset in `visState`
1015
+ * @memberof visStateActions
1016
+ * @param dataId - ***required** Id of the dataset to update
1017
+ * @param label - ***required** New name for the dataset
1018
+ * @returns action
1019
+ * @public
1020
+ */
1021
+ function renameDataset(dataId, label) {
1022
+ return {
1023
+ type: _actionTypes["default"].RENAME_DATASET,
1024
+ dataId: dataId,
1025
+ label: label
1026
+ };
1027
+ }
1028
+ /**
1029
+ * Update an existing dataset props in `visState`
1030
+ * @param dataId - ***required** Id of the dataset to update
1031
+ * @param props - ***required** New props to update
1032
+ * @returns action
1033
+ */
1034
+ function updateDatasetProps(dataId, props) {
1035
+ return {
1036
+ type: _actionTypes["default"].UPDATE_DATASET_PROPS,
1037
+ dataId: dataId,
1038
+ props: props
1039
+ };
1040
+ }
1041
+ /**
1042
+ * Update an existing dataset's schema (columns + fields) in place.
1043
+ * Unlike `addDataToMap`, this keeps the dataset `id`/`label`/`color`/`metadata`
1044
+ * and reconciles layers, filters and tooltip config that referenced the old
1045
+ * columns. Used by the AI assistant's `map.add-column` command.
1046
+ * @param dataId - ***required** Id of the dataset to update
1047
+ * @param data - ***required** New column data + field descriptors
1048
+ * @param renames - (Optional) old column name → new column name, so layers/filters follow a rename
1049
+ * @returns action
1050
+ */
1051
+ function updateDataset(dataId, data, renames) {
1052
+ return {
1053
+ type: _actionTypes["default"].UPDATE_DATASET,
1054
+ dataId: dataId,
1055
+ data: data,
1056
+ renames: renames
1057
+ };
1058
+ }
1059
+ /**
1060
+ * Rename a dataset column. The new name becomes the field identity stored in
1061
+ * layers, filters, charts, dataset operations, and saved maps.
1062
+ * @param dataId - dataset id
1063
+ * @param fieldName - current column name
1064
+ * @param newName - next column name
1065
+ * @returns action
1066
+ * @public
1067
+ */
1068
+ function renameTableColumn(dataId, fieldName, newName) {
1069
+ return {
1070
+ type: _actionTypes["default"].RENAME_TABLE_COLUMN,
1071
+ dataId: dataId,
1072
+ fieldName: fieldName,
1073
+ newName: newName
1074
+ };
1075
+ }
1076
+ /**
1077
+ * Convert every value in a dataset column and update its field type atomically.
1078
+ * Invalid values leave the dataset unchanged and produce an error notification.
1079
+ * @param dataId - dataset id
1080
+ * @param fieldName - column name
1081
+ * @param newType - target kepler.gl field type
1082
+ * @returns action
1083
+ * @public
1084
+ */
1085
+ function changeTableColumnType(dataId, fieldName, newType) {
1086
+ return {
1087
+ type: _actionTypes["default"].CHANGE_TABLE_COLUMN_TYPE,
1088
+ dataId: dataId,
1089
+ fieldName: fieldName,
1090
+ newType: newType
1091
+ };
1092
+ }
1093
+ /**
1094
+ * Delete a dataset column and drop references that required it.
1095
+ * @param dataId - dataset id
1096
+ * @param fieldName - column name
1097
+ * @returns action
1098
+ * @public
1099
+ */
1100
+ function deleteTableColumn(dataId, fieldName) {
1101
+ return {
1102
+ type: _actionTypes["default"].DELETE_TABLE_COLUMN,
1103
+ dataId: dataId,
1104
+ fieldName: fieldName
1105
+ };
1106
+ }
1107
+ /**
1108
+ * Start and end filter animation
1109
+ * @memberof visStateActions
1110
+ * @param {Number} idx of filter
1111
+ * @returns action
1112
+ * @public
1113
+ */
1114
+ function toggleFilterAnimation(idx) {
1115
+ return {
1116
+ type: _actionTypes["default"].TOGGLE_FILTER_ANIMATION,
1117
+ idx: idx
1118
+ };
1119
+ }
1120
+ /**
1121
+ * Change filter animation speed
1122
+ * @memberof visStateActions
1123
+ * @param idx - `idx` of filter
1124
+ * @param speed - `speed` to change it to. `speed` is a multiplier
1125
+ * @returns action
1126
+ * @public
1127
+ */
1128
+ function updateFilterAnimationSpeed(idx, speed) {
1129
+ return {
1130
+ type: _actionTypes["default"].UPDATE_FILTER_ANIMATION_SPEED,
1131
+ idx: idx,
1132
+ speed: speed
1133
+ };
1134
+ }
1135
+ /**
1136
+ * Set animation config: works with both layer animation and filter animation
1137
+ * @param config
1138
+ * @returns action
1139
+ */
1140
+ function setAnimationConfig(config) {
1141
+ return {
1142
+ type: _actionTypes["default"].SET_ANIMATION_CONFIG,
1143
+ config: config
1144
+ };
1145
+ }
1146
+ /**
1147
+ * Reset animation
1148
+ * @memberof visStateActions
1149
+ * @param value - Current value of the slider
1150
+ * @returns action
1151
+ * @public
1152
+ */
1153
+ function setLayerAnimationTime(value) {
1154
+ return {
1155
+ type: _actionTypes["default"].SET_LAYER_ANIMATION_TIME,
1156
+ value: value
1157
+ };
1158
+ }
1159
+ /**
1160
+ * update trip layer animation speed
1161
+ * @memberof visStateActions
1162
+ * @param speed - `speed` to change it to. `speed` is a multiplier
1163
+ * @returns action
1164
+ * @public
1165
+ */
1166
+ function updateLayerAnimationSpeed(speed) {
1167
+ return {
1168
+ type: _actionTypes["default"].UPDATE_LAYER_ANIMATION_SPEED,
1169
+ speed: speed
1170
+ };
1171
+ }
1172
+ /**
1173
+ * start end end layer animation
1174
+ * @memberof visStateActions
1175
+ * @returns action
1176
+ * @public
1177
+ */
1178
+ function toggleLayerAnimation() {
1179
+ return {
1180
+ type: _actionTypes["default"].TOGGLE_LAYER_ANIMATION
1181
+ };
1182
+ }
1183
+ /**
1184
+ * hide and show layer animation control
1185
+ * @memberof visStateActions
1186
+ * @returns action
1187
+ * @public
1188
+ */
1189
+ function toggleLayerAnimationControl() {
1190
+ return {
1191
+ type: _actionTypes["default"].TOGGLE_LAYER_ANIMATION_CONTROL
1192
+ };
1193
+ }
1194
+ /**
1195
+ * Show larger time filter at bottom for time playback (apply to time filter only)
1196
+ * @memberof visStateActions
1197
+ * @param idx - index of filter to enlarge
1198
+ * @param view - type of filter view
1199
+ * @returns action
1200
+ * @public
1201
+ */
1202
+ function setFilterView(idx, view) {
1203
+ return {
1204
+ type: _actionTypes["default"].SET_FILTER_VIEW,
1205
+ idx: idx,
1206
+ view: view
1207
+ };
1208
+ }
1209
+ /**
1210
+ * Show/hide filter feature on map
1211
+ * @memberof visStateActions
1212
+ * @param idx - index of filter feature to show/hide
1213
+ * @return action
1214
+ */
1215
+ function toggleFilterFeature(idx) {
1216
+ return {
1217
+ type: _actionTypes["default"].TOGGLE_FILTER_FEATURE,
1218
+ idx: idx
1219
+ };
1220
+ }
1221
+ /**
1222
+ * Trigger layer hover event with hovered object
1223
+ * @memberof visStateActions
1224
+ * @param info - Object hovered, returned by deck.gl.
1225
+ * @param mapIndex - Optional property for limiting the display of the `<MapPopover>` to the `<MapContainer>` the user is interacting with.
1226
+ * @returns action
1227
+ * @public
1228
+ */
1229
+ function onLayerHover(info, mapIndex) {
1230
+ return {
1231
+ type: _actionTypes["default"].LAYER_HOVER,
1232
+ info: info,
1233
+ mapIndex: mapIndex
1234
+ };
1235
+ }
1236
+ /**
1237
+ * Trigger layer click event with clicked object
1238
+ * @memberof visStateActions
1239
+ * @param info - Object clicked, returned by deck.gl
1240
+ * @returns action
1241
+ * @public
1242
+ */
1243
+ function onLayerClick(info) {
1244
+ return {
1245
+ type: _actionTypes["default"].LAYER_CLICK,
1246
+ info: info
1247
+ };
1248
+ }
1249
+ /**
1250
+ * Trigger map click event, unselect clicked object
1251
+ * @memberof visStateActions
1252
+ * @returns action
1253
+ * @public
1254
+ */
1255
+ function onMapClick() {
1256
+ return {
1257
+ type: _actionTypes["default"].MAP_CLICK
1258
+ };
1259
+ }
1260
+ /**
1261
+ * Trigger map mouse moveevent, payload would be
1262
+ * React-map-gl MapLayerMouseEvent
1263
+ * https://visgl.github.io/react-map-gl/docs/api-reference/types#maplayermouseevent
1264
+ *
1265
+ * @memberof visStateActions
1266
+ * @param evt - MapLayerMouseEvent
1267
+ * @returns action
1268
+ * @public
1269
+ */
1270
+ function onMouseMove(evt) {
1271
+ return {
1272
+ type: _actionTypes["default"].MOUSE_MOVE,
1273
+ evt: evt
1274
+ };
1275
+ }
1276
+ /**
1277
+ * Toggle visibility of a layer in a split map
1278
+ * @memberof visStateActions
1279
+ * @param mapIndex - index of the split map
1280
+ * @param layerId - id of the layer
1281
+ * @returns action
1282
+ * @public
1283
+ */
1284
+ function toggleLayerForMap(mapIndex, layerId) {
1285
+ return {
1286
+ type: _actionTypes["default"].TOGGLE_LAYER_FOR_MAP,
1287
+ mapIndex: mapIndex,
1288
+ layerId: layerId
1289
+ };
1290
+ }
1291
+ /**
1292
+ * Set the property of a filter plot
1293
+ * @memberof visStateActions
1294
+ * @param idx
1295
+ * @param newProp key value mapping of new prop `{yAxis: 'histogram'}`
1296
+ * @param valueIndex dataId index
1297
+ * @returns action
1298
+ * @public
1299
+ */
1300
+ function setFilterPlot(idx, newProp, valueIndex) {
1301
+ return {
1302
+ type: _actionTypes["default"].SET_FILTER_PLOT,
1303
+ idx: idx,
1304
+ newProp: newProp,
1305
+ valueIndex: valueIndex
1306
+ };
1307
+ }
1308
+ /**
1309
+ * Set the property of a filter plot
1310
+ * @memberof visStateActions
1311
+ * @param info
1312
+ * @returns action
1313
+ * @public
1314
+ */
1315
+ function setMapInfo(info) {
1316
+ return {
1317
+ type: _actionTypes["default"].SET_MAP_INFO,
1318
+ info: info
1319
+ };
1320
+ }
1321
+ /**
1322
+ * Trigger file loading dispatch `addDataToMap` if succeed, or `loadFilesErr` if failed
1323
+ * @memberof visStateActions
1324
+ * @param files array of fileblob
1325
+ * @param onFinish called with the processed file cache. Defaults to `loadFilesSuccess`
1326
+ * @param options forwarded to `addDataToMap`. `autoCreateLayers` defaults to true when omitted
1327
+ * @returns action
1328
+ * @public
1329
+ */
1330
+ function loadFiles(files, onFinish, options) {
1331
+ return _objectSpread({
1332
+ type: _actionTypes["default"].LOAD_FILES,
1333
+ files: files,
1334
+ onFinish: onFinish
1335
+ }, options ? {
1336
+ options: options
1337
+ } : {});
1338
+ }
1339
+
1340
+ /**
1341
+ * Called with next file to load
1342
+ * @memberof visStateActions
1343
+ * @returns action
1344
+ * @public
1345
+ */
1346
+ function loadNextFile(loadId) {
1347
+ return _objectSpread({
1348
+ type: _actionTypes["default"].LOAD_NEXT_FILE
1349
+ }, loadId == null ? {} : {
1350
+ loadId: loadId
1351
+ });
1352
+ }
1353
+ /**
1354
+ * A zip in the load queue has been unpacked. The updater either parses a
1355
+ * single shapefile archive or enqueues one dataset per supported member.
1356
+ * @memberof visStateActions
1357
+ */
1358
+ function expandZipArchiveSuccess(payload) {
1359
+ return _objectSpread({
1360
+ type: _actionTypes["default"].EXPAND_ZIP_ARCHIVE_SUCCESS
1361
+ }, payload);
1362
+ }
1363
+ /**
1364
+ * called when all files are processed and loaded
1365
+ * @memberof visStateActions
1366
+ * @param result
1367
+ * @param options forwarded to `addDataToMap`
1368
+ * @returns action
1369
+ */
1370
+ function loadFilesSuccess(result, options) {
1371
+ return _objectSpread({
1372
+ type: _actionTypes["default"].LOAD_FILES_SUCCESS,
1373
+ result: result
1374
+ }, options ? {
1375
+ options: options
1376
+ } : {});
1377
+ }
1378
+ /**
1379
+ * Confirm a staged upload as a replacement for one dataset.
1380
+ * The first dataset remaps that dataset's layers and filters. Further datasets are added.
1381
+ * @memberof visStateActions
1382
+ * @param payload.result staged file cache the user left checked
1383
+ * @param payload.datasetToReplaceId dataset the menu action selected
1384
+ * @param payload.deleteOriginalDataset drop the original table. Defaults to true
1385
+ * @public
1386
+ */
1387
+ function confirmReplaceDataset(payload) {
1388
+ return {
1389
+ type: _actionTypes["default"].CONFIRM_REPLACE_DATASET,
1390
+ result: payload.result,
1391
+ datasetToReplaceId: payload.datasetToReplaceId,
1392
+ deleteOriginalDataset: payload.deleteOriginalDataset
1393
+ };
1394
+ }
1395
+ /**
1396
+ * Store processed files without adding them to the map or closing the modal.
1397
+ * @memberof visStateActions
1398
+ * @param result processed file cache
1399
+ * @returns action
1400
+ * @public
1401
+ */
1402
+ function stageLoadedFiles(result) {
1403
+ return {
1404
+ type: _actionTypes["default"].STAGE_LOADED_FILES,
1405
+ result: result
1406
+ };
1407
+ }
1408
+
1409
+ /**
1410
+ * Add already-parsed or remote datasets to the Add Data list without starting a file load.
1411
+ * @memberof visStateActions
1412
+ * @param result datasets to keep until Add Data
1413
+ * @returns action
1414
+ * @public
1415
+ */
1416
+ function appendStagedLoadedFiles(result) {
1417
+ return {
1418
+ type: _actionTypes["default"].APPEND_STAGED_LOADED_FILES,
1419
+ result: result
1420
+ };
1421
+ }
1422
+
1423
+ /**
1424
+ * Drop files staged for the Add Data button and stop an in-progress modal load.
1425
+ * @memberof visStateActions
1426
+ * @returns action
1427
+ * @public
1428
+ */
1429
+ function clearStagedLoadedFiles() {
1430
+ return {
1431
+ type: _actionTypes["default"].CLEAR_STAGED_LOADED_FILES
1432
+ };
1433
+ }
1434
+ /**
1435
+ * called when successfully loaded one file, ready to move on to the next one
1436
+ * @memberof visStateActions
1437
+ * @param result
1438
+ * @returns action
1439
+ */
1440
+ function loadFileStepSuccess(_ref2) {
1441
+ var fileName = _ref2.fileName,
1442
+ fileCache = _ref2.fileCache;
1443
+ return {
1444
+ type: _actionTypes["default"].LOAD_FILE_STEP_SUCCESS,
1445
+ fileName: fileName,
1446
+ fileCache: fileCache
1447
+ };
1448
+ }
1449
+ /**
1450
+ * Trigger loading file error
1451
+ * @memberof visStateActions
1452
+ * @param error
1453
+ * @returns action
1454
+ * @public
1455
+ */
1456
+
1457
+ function loadFilesErr(fileName, error, loadId) {
1458
+ return _objectSpread({
1459
+ type: _actionTypes["default"].LOAD_FILES_ERR,
1460
+ fileName: fileName,
1461
+ error: error
1462
+ }, loadId == null ? {} : {
1463
+ loadId: loadId
1464
+ });
1465
+ }
1466
+ /**
1467
+ * Set user-facing GeoJSON properties on a Draw on Map sketch.
1468
+ * Editor-only keys such as `filterId` and `isClosed` are preserved.
1469
+ * @memberof visStateActions
1470
+ * @param feature
1471
+ * @param properties
1472
+ * @returns action
1473
+ */
1474
+ function setEditorFeatureProperties(feature, properties) {
1475
+ return {
1476
+ type: _actionTypes["default"].SET_EDITOR_FEATURE_PROPERTIES,
1477
+ feature: feature,
1478
+ properties: properties
1479
+ };
1480
+ }
1481
+ /**
1482
+ * Store features to state
1483
+ * @memberof visStateActions
1484
+ * @param features
1485
+ * @returns action
1486
+ */
1487
+ function setFeatures(features) {
1488
+ return {
1489
+ type: _actionTypes["default"].SET_FEATURES,
1490
+ features: features
1491
+ };
1492
+ }
1493
+ /**
1494
+ * It will apply the provide feature as filter to the given layer.
1495
+ * If the given feature is already applied as filter to the layer, it will remove the layer from the filter
1496
+ * @memberof visStateActions
1497
+ * @param layer
1498
+ * @param feature
1499
+ * @returns action
1500
+ */
1501
+ function setPolygonFilterLayer(layer, feature) {
1502
+ return {
1503
+ type: _actionTypes["default"].SET_POLYGON_FILTER_LAYER,
1504
+ layer: layer,
1505
+ feature: feature
1506
+ };
1507
+ }
1508
+ /**
1509
+ * Apply the provided feature as a polygon filter to all layers.
1510
+ * @memberof visStateActions
1511
+ * @param feature
1512
+ * @returns action
1513
+ */
1514
+ function setPolygonFilterAllLayers(feature) {
1515
+ return {
1516
+ type: _actionTypes["default"].SET_POLYGON_FILTER_ALL_LAYERS,
1517
+ feature: feature
1518
+ };
1519
+ }
1520
+ /**
1521
+ * Set the current feature to be edited/deleted,
1522
+ * and the context of how the feature was selected.
1523
+ * @memberof visStateActions
1524
+ * @param feature
1525
+ * @param selectionContext
1526
+ * @returns action
1527
+ */
1528
+ function setSelectedFeature(feature, selectionContext) {
1529
+ return {
1530
+ type: _actionTypes["default"].SET_SELECTED_FEATURE,
1531
+ feature: feature,
1532
+ selectionContext: selectionContext
1533
+ };
1534
+ }
1535
+ /**
1536
+ * Delete the given feature
1537
+ * @memberof visStateActions
1538
+ * @param feature
1539
+ * @returns action
1540
+ */
1541
+ function deleteFeature(feature) {
1542
+ return {
1543
+ type: _actionTypes["default"].DELETE_FEATURE,
1544
+ feature: feature
1545
+ };
1546
+ }
1547
+ /** Set the Draw on Map editor mode.
1548
+ * @memberof visStateActions
1549
+ * @param mode one of `EDITOR_MODES`: `EDIT`, `DRAW_POINT`, `DRAW_LINESTRING`, `DRAW_POLYGON`, `DRAW_RECTANGLE`, `DRAW_CIRCLE`
1550
+ * @returns action
1551
+ * @public
1552
+ * @example
1553
+ * import {setEditorMode} from '@kepler.gl/actions';
1554
+ * import {EDITOR_MODES} from '@kepler.gl/constants';
1555
+ *
1556
+ * this.props.dispatch(setEditorMode(EDITOR_MODES.DRAW_LINESTRING));
1557
+ */
1558
+ function setEditorMode(mode) {
1559
+ return {
1560
+ type: _actionTypes["default"].SET_EDITOR_MODE,
1561
+ mode: mode
1562
+ };
1563
+ }
1564
+ /**
1565
+ * Trigger CPU filter of selected dataset
1566
+ * @memberof visStateActions
1567
+ * @param dataId - single dataId or an array of dataIds
1568
+ * @returns action
1569
+ * @public
1570
+ */
1571
+ function applyCPUFilter(dataId) {
1572
+ return {
1573
+ type: _actionTypes["default"].APPLY_CPU_FILTER,
1574
+ dataId: dataId
1575
+ };
1576
+ }
1577
+ /**
1578
+ * Toggle editor layer visibility
1579
+ * @memberof visStateActions
1580
+ * @return action
1581
+ */
1582
+ function toggleEditorVisibility() {
1583
+ return {
1584
+ type: _actionTypes["default"].TOGGLE_EDITOR_VISIBILITY
1585
+ };
1586
+ }
1587
+ /**
1588
+ * Convert editor sketch features into a GeoJSON dataset and layer, then clear the sketches.
1589
+ * The new dataset/layer is labeled `Drawn Geometry` plus a two-digit number.
1590
+ * No-ops when `enableDrawOnMapSketches` is false in application config.
1591
+ * @memberof visStateActions
1592
+ * @return action
1593
+ * @public
1594
+ * @example
1595
+ * import {convertEditorFeaturesToLayer} from '@kepler.gl/actions';
1596
+ *
1597
+ * this.props.dispatch(convertEditorFeaturesToLayer());
1598
+ */
1599
+ function convertEditorFeaturesToLayer() {
1600
+ return {
1601
+ type: _actionTypes["default"].CONVERT_EDITOR_FEATURES_TO_LAYER
1602
+ };
1603
+ }
1604
+ /**
1605
+ * Copy in-memory rows that fall inside the currently selected Draw on Map polygon
1606
+ * into a new local dataset. Vector tile layers extract a snapshot of features
1607
+ * already loaded in the current view. Raster tile layers download a PNG clip and
1608
+ * a GeoJSON file with the export rectangle and zonal stats. No-ops for WMS/3D/bitmap tiles, unsupported layer types,
1609
+ * and non-polygon drawings.
1610
+ * @memberof visStateActions
1611
+ * @param layerId Layer whose dataset should be extracted
1612
+ * @return action
1613
+ * @public
1614
+ * @example
1615
+ * import {extractDataFromFeature} from '@kepler.gl/actions';
1616
+ *
1617
+ * this.props.dispatch(extractDataFromFeature({layerId: 'point-layer-id'}));
1618
+ */
1619
+ function extractDataFromFeature(_ref3) {
1620
+ var layerId = _ref3.layerId;
1621
+ return {
1622
+ type: _actionTypes["default"].EXTRACT_DATA_FROM_FEATURE,
1623
+ layerId: layerId
1624
+ };
1625
+ }
1626
+ /**
1627
+ * Process the next file batch
1628
+ * @memberof visStateActions
1629
+ * @param payload - batch payload
1630
+ * @return action
1631
+ */
1632
+ function nextFileBatch(payload) {
1633
+ return {
1634
+ type: _actionTypes["default"].NEXT_FILE_BATCH,
1635
+ payload: payload
1636
+ };
1637
+ }
1638
+ /**
1639
+ * Process the file content
1640
+ * @memberof visStateActions
1641
+ * @param payload - the file content
1642
+ * @return action
1643
+ */
1644
+ function processFileContent(payload) {
1645
+ return {
1646
+ type: _actionTypes["default"].PROCESS_FILE_CONTENT,
1647
+ payload: payload
1648
+ };
1649
+ }
1650
+ /**
1651
+ * Set layer animation time format and timezone
1652
+ * @memberof visStateActions
1653
+ * @param config - {timeFormat: string, timezone: string}
1654
+ * @return action
1655
+ */
1656
+ function setLayerAnimationTimeConfig(config) {
1657
+ return {
1658
+ type: _actionTypes["default"].SET_LAYER_ANIMATION_TIME_CONFIG,
1659
+ config: config
1660
+ };
1661
+ }
1662
+ /**
1663
+ * Set Filter animation time format and timezone
1664
+ * @memberof visStateActions
1665
+ * @param idx
1666
+ * @param config
1667
+ * @return action
1668
+ */
1669
+ function setFilterAnimationTimeConfig(idx, config) {
1670
+ return {
1671
+ type: _actionTypes["default"].SET_FILTER_ANIMATION_TIME_CONFIG,
1672
+ idx: idx,
1673
+ config: config
1674
+ };
1675
+ }
1676
+ /**
1677
+ * deck.gl layer gpu filter callback
1678
+ * @memberof visStateActions
1679
+ * @param layer
1680
+ * @param event
1681
+ * @return action
1682
+ */
1683
+ function layerFilteredItemsChange(layer, event) {
1684
+ return {
1685
+ type: _actionTypes["default"].LAYER_FILTERED_ITEMS_CHANGE,
1686
+ layer: layer,
1687
+ event: event
1688
+ };
1689
+ }
1690
+ /**
1691
+ * WMS layer feature info callback
1692
+ * @memberof visStateActions
1693
+ * @param layer
1694
+ * @param featureInfo
1695
+ * @param coordinate
1696
+ * @return action
1697
+ */
1698
+ function wmsFeatureInfo(layer, featureInfo, coordinate) {
1699
+ return {
1700
+ type: _actionTypes["default"].WMS_FEATURE_INFO,
1701
+ layer: layer,
1702
+ featureInfo: featureInfo,
1703
+ coordinate: coordinate
1704
+ };
1705
+ }
1706
+ /**
1707
+ * Sync time filter with layer timeline
1708
+ * @memberof visStateActions
1709
+ * @param idx
1710
+ * @param enable
1711
+ * @return action
1712
+ */
1713
+ function syncTimeFilterWithLayerTimeline(idx, enable) {
1714
+ return {
1715
+ type: _actionTypes["default"].SYNC_TIME_FILTER_WITH_LAYER_TIMELINE,
1716
+ idx: idx,
1717
+ enable: enable
1718
+ };
1719
+ }
1720
+ /**
1721
+ * Set time filter sync timeline mode
1722
+ * @memberof visStateActions
1723
+ * @param id
1724
+ * @param mode
1725
+ * @return action
1726
+ */
1727
+ function setTimeFilterSyncTimelineMode(_ref4) {
1728
+ var id = _ref4.id,
1729
+ mode = _ref4.mode;
1730
+ return {
1731
+ type: _actionTypes["default"].SYNC_TIME_FILTER_TIMELINE_MODE,
1732
+ id: id,
1733
+ mode: mode
1734
+ };
1735
+ }
1736
+ function addGroupBy(dataId) {
1737
+ return {
1738
+ type: _actionTypes["default"].ADD_GROUP_BY,
1739
+ dataId: dataId
1740
+ };
1741
+ }
1742
+ function setGroupByConfig(id, config) {
1743
+ return {
1744
+ type: _actionTypes["default"].SET_GROUP_BY_CONFIG,
1745
+ id: id,
1746
+ config: config
1747
+ };
1748
+ }
1749
+ function runGroupBy(id) {
1750
+ return {
1751
+ type: _actionTypes["default"].RUN_GROUP_BY,
1752
+ id: id
1753
+ };
1754
+ }
1755
+ function addJoin(dataId) {
1756
+ var implementation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'simple';
1757
+ return {
1758
+ type: _actionTypes["default"].ADD_JOIN,
1759
+ dataId: dataId,
1760
+ implementation: implementation
1761
+ };
1762
+ }
1763
+ function setJoinConfig(id, config) {
1764
+ return {
1765
+ type: _actionTypes["default"].SET_JOIN_CONFIG,
1766
+ id: id,
1767
+ config: config
1768
+ };
1769
+ }
1770
+ function runJoin(id) {
1771
+ return {
1772
+ type: _actionTypes["default"].RUN_JOIN,
1773
+ id: id
1774
+ };
1775
+ }
1776
+ function addSpatialJoin(dataId) {
1777
+ return {
1778
+ type: _actionTypes["default"].ADD_SPATIAL_JOIN,
1779
+ dataId: dataId
1780
+ };
1781
+ }
1782
+ function setSpatialJoinConfig(id, config) {
1783
+ return {
1784
+ type: _actionTypes["default"].SET_SPATIAL_JOIN_CONFIG,
1785
+ id: id,
1786
+ config: config
1787
+ };
1788
+ }
1789
+ function runSpatialJoin(id) {
1790
+ return {
1791
+ type: _actionTypes["default"].RUN_SPATIAL_JOIN,
1792
+ id: id
1793
+ };
1794
+ }
1795
+ function addSuitability(dataId) {
1796
+ return {
1797
+ type: _actionTypes["default"].ADD_SUITABILITY,
1798
+ dataId: dataId
1799
+ };
1800
+ }
1801
+ function setSuitabilityConfig(id, config) {
1802
+ return {
1803
+ type: _actionTypes["default"].SET_SUITABILITY_CONFIG,
1804
+ id: id,
1805
+ config: config
1806
+ };
1807
+ }
1808
+ function runSuitability(id) {
1809
+ return {
1810
+ type: _actionTypes["default"].RUN_SUITABILITY,
1811
+ id: id
1812
+ };
1813
+ }
1814
+ function removeDatasetOp(id) {
1815
+ return {
1816
+ type: _actionTypes["default"].REMOVE_DATASET_OP,
1817
+ id: id
1818
+ };
1819
+ }
1820
+ var createNewDatasetSuccess = exports.createNewDatasetSuccess = (0, _toolkit.createAction)(_actionTypes["default"].CREATE_NEW_DATASET_SUCCESS);
1821
+ /**
1822
+ * Change of number of active loading items, used to render loading indicator.
1823
+ * @memberof visStateActions
1824
+ * @param payload
1825
+ * @param payload.change Change of number of active loading actions.
1826
+ * @public
1827
+ */
1828
+ var setLoadingIndicator = exports.setLoadingIndicator = (0, _toolkit.createAction)(_actionTypes["default"].SET_LOADING_INDICATOR);
1829
+ /**
1830
+ * Update download progress for an in-flight dataset load shown on the map
1831
+ * loading indicator (0–100).
1832
+ * @memberof visStateActions
1833
+ * @returns action
1834
+ */
1835
+ function setLoadingProgress(id, percent, phase) {
1836
+ return _objectSpread({
1837
+ type: _actionTypes["default"].SET_LOADING_PROGRESS,
1838
+ id: id,
1839
+ percent: percent
1840
+ }, phase ? {
1841
+ phase: phase
1842
+ } : {});
1843
+ }
1844
+
1845
+ /**
1846
+ * This declaration is needed to group actions in docs
1847
+ */
1848
+ /**
1849
+ * Actions handled mostly by `visState` reducer.
1850
+ * They manage how data is processed, filtered and displayed on the map by operates on layers,
1851
+ * filters and interaction settings.
1852
+ *
1853
+ * @public
1854
+ */
1855
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1856
+ // @ts-ignore
1857
+ var visStateActions = null;
1858
+ /* eslint-enable @typescript-eslint/no-unused-vars */
1859
+ //# sourceMappingURL=vis-state-actions.js.map