@kepler.gl/types 3.3.0-alpha.20 → 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.
package/layers.d.ts CHANGED
@@ -266,7 +266,7 @@ export type VisConfig = {
266
266
  ) => boolean;
267
267
 
268
268
  allowCustomValue?: boolean;
269
- /** Checkbox label shown when allowCustomValue is true. Defaults to "custom input". */
269
+ /** Label for the custom-value edit button when allowCustomValue is true. */
270
270
  customInputLabel?: string;
271
271
  };
272
272
 
@@ -467,8 +467,10 @@ export type LayerTextConfig = {
467
467
  };
468
468
 
469
469
  export type LayerCallbacks = {
470
+ onLayerError?: (idx: number, error: Error) => void;
470
471
  onLayerHover?: (idx: number, value: any) => void;
471
472
  onSetLayerDomain?: (idx: number, value: any) => void;
473
+ onLayerVisConfigChange?: (idx: number, value: Partial<LayerVisConfig>) => void;
472
474
  onFilteredItemsChange?: (
473
475
  idx: number,
474
476
  event: {
@@ -489,8 +491,10 @@ export type LayerCallbacks = {
489
491
  };
490
492
 
491
493
  export type BindedLayerCallbacks = {
494
+ onLayerError?: (error: Error) => void;
492
495
  onLayerHover?: (value: any) => void;
493
496
  onSetLayerDomain?: (value: any) => void;
497
+ onLayerVisConfigChange?: (value: Partial<LayerVisConfig>) => void;
494
498
  onFilteredItemsChange?: (event: {id: string; count: number}) => void;
495
499
  onWMSFeatureInfo?: (props: {
496
500
  featureInfo: Array<{name: string; value: string}> | string | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kepler.gl/types",
3
3
  "author": "Shan He <shan@uber.com>",
4
- "version": "3.3.0-alpha.20",
4
+ "version": "3.3.0-alpha.21",
5
5
  "description": "kepler.gl types used by kepler.gl components, actions and reducers",
6
6
  "license": "MIT",
7
7
  "types": "index.d.ts",
package/reducers.d.ts CHANGED
@@ -660,7 +660,13 @@ export type UiTheme = string;
660
660
 
661
661
  export type PanelListView = string;
662
662
 
663
+ /** Transient playback requests; never serialized with the saved map. */
664
+ export type CameraTourPlaybackRequest =
665
+ | {action: 'play' | 'pause'}
666
+ | {action: 'seek'; elapsedMs: number};
667
+
663
668
  export type UiState = {
669
+ cameraTourPlaybackRequest?: CameraTourPlaybackRequest & {sequence: number};
664
670
  readOnly: boolean;
665
671
  activeSidePanel: string | null;
666
672
  currentModal: string | null;