@kepler.gl/actions 3.3.0-alpha.13 → 3.3.0-alpha.14

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.
@@ -161,7 +161,7 @@ export type SetExportImageSettingUpdaterAction = {
161
161
  payload: Partial<ExportImage>;
162
162
  };
163
163
  /**
164
- * Set `exportImage` settings: ratio, resolution, legend
164
+ * Set `exportImage` settings: ratio, resolution, legend, charts
165
165
  * @memberof uiStateActions
166
166
  * @param newSetting - {ratio: '1x'}
167
167
  * @public
@@ -2,7 +2,7 @@ import { default as ActionTypes } from './action-types';
2
2
  import { FileCacheItem } from '@kepler.gl/processors';
3
3
  import { Layer, LayerBaseConfig } from '@kepler.gl/layers';
4
4
  import { KeplerTable } from '@kepler.gl/table';
5
- import { AddDataToMapPayload, ViewportPadding, ValueOf, Merge, PickInfo, RGBColor, NestedPartial, LayerVisConfig, ColorUI, Feature, FeatureSelectionContext, InteractionConfig, Filter, ParsedConfig, ParsedLayer, EffectPropsPartial, AnnotationPropsPartial, SyncTimelineMode, AnimationConfig, FilterAnimationConfig, LayerOrder, LayerOrderGroup, ProtoDataset } from '@kepler.gl/types';
5
+ import { AddDataToMapPayload, ViewportPadding, ValueOf, Merge, PickInfo, RGBColor, NestedPartial, LayerVisConfig, ColorUI, Feature, FeatureSelectionContext, InteractionConfig, Filter, ParsedConfig, ParsedLayer, EffectPropsPartial, AnnotationPropsPartial, SyncTimelineMode, AnimationConfig, FilterAnimationConfig, LayerOrder, LayerOrderGroup, ProtoDataset, ChartConfig } from '@kepler.gl/types';
6
6
  export type ApplyLayerConfigUpdaterAction = {
7
7
  oldLayerId: string;
8
8
  newLayerConfig: ParsedLayer;
@@ -454,6 +454,47 @@ export type UpdateEffectUpdaterAction = {
454
454
  export declare function updateEffect(id: string, props: EffectPropsPartial): Merge<UpdateEffectUpdaterAction, {
455
455
  type: typeof ActionTypes.UPDATE_EFFECT;
456
456
  }>;
457
+ export type AddChartUpdaterAction = {
458
+ chart: ChartConfig;
459
+ };
460
+ /**
461
+ * Add a chart to the charts panel
462
+ * @memberof visStateActions
463
+ * @param chart - chart config
464
+ * @returns action
465
+ * @public
466
+ */
467
+ export declare function addChart(chart: ChartConfig): Merge<AddChartUpdaterAction, {
468
+ type: typeof ActionTypes.ADD_CHART;
469
+ }>;
470
+ export type UpdateChartUpdaterAction = {
471
+ id: string;
472
+ props: Partial<ChartConfig>;
473
+ };
474
+ /**
475
+ * Update a chart
476
+ * @memberof visStateActions
477
+ * @param id - chart id
478
+ * @param props - partial chart config
479
+ * @returns action
480
+ * @public
481
+ */
482
+ export declare function updateChart(id: string, props: Partial<ChartConfig>): Merge<UpdateChartUpdaterAction, {
483
+ type: typeof ActionTypes.UPDATE_CHART;
484
+ }>;
485
+ export type RemoveChartUpdaterAction = {
486
+ id: string;
487
+ };
488
+ /**
489
+ * Remove a chart
490
+ * @memberof visStateActions
491
+ * @param id - chart id
492
+ * @returns action
493
+ * @public
494
+ */
495
+ export declare function removeChart(id: string): Merge<RemoveChartUpdaterAction, {
496
+ type: typeof ActionTypes.REMOVE_CHART;
497
+ }>;
457
498
  export type AddAnnotationUpdaterAction = {
458
499
  config?: AnnotationPropsPartial;
459
500
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/actions",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.3.0-alpha.13",
4
+ "version": "3.3.0-alpha.14",
5
5
  "description": "kepler.gl constants used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "main": "dist/cjs/index.js",
@@ -29,13 +29,13 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@deck.gl/core": "^9.3.1",
32
- "@kepler.gl/cloud-providers": "3.3.0-alpha.13",
33
- "@kepler.gl/constants": "3.3.0-alpha.13",
34
- "@kepler.gl/layers": "3.3.0-alpha.13",
35
- "@kepler.gl/processors": "3.3.0-alpha.13",
36
- "@kepler.gl/table": "3.3.0-alpha.13",
37
- "@kepler.gl/types": "3.3.0-alpha.13",
38
- "@kepler.gl/utils": "3.3.0-alpha.13",
32
+ "@kepler.gl/cloud-providers": "3.3.0-alpha.14",
33
+ "@kepler.gl/constants": "3.3.0-alpha.14",
34
+ "@kepler.gl/layers": "3.3.0-alpha.14",
35
+ "@kepler.gl/processors": "3.3.0-alpha.14",
36
+ "@kepler.gl/table": "3.3.0-alpha.14",
37
+ "@kepler.gl/types": "3.3.0-alpha.14",
38
+ "@kepler.gl/utils": "3.3.0-alpha.14",
39
39
  "@reduxjs/toolkit": "^1.7.2",
40
40
  "@types/react-redux": "^7.1.23",
41
41
  "@types/redux-actions": "^2.6.2",