@kepler.gl/types 3.2.4 → 3.2.6

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
@@ -426,6 +426,7 @@ export type LayerCallbacks = {
426
426
  coordinate?: [number, number] | null;
427
427
  }
428
428
  ) => void;
429
+ onRedrawNeeded?: (idx: number) => void;
429
430
  };
430
431
 
431
432
  export type BindedLayerCallbacks = {
@@ -436,6 +437,7 @@ export type BindedLayerCallbacks = {
436
437
  featureInfo: Array<{name: string; value: string}> | string | null,
437
438
  coordinate?: [number, number]
438
439
  ) => void;
440
+ onRedrawNeeded?: () => void;
439
441
  };
440
442
 
441
443
  export type VisualChannelAggregation = 'colorAggregation' | 'sizeAggregation';
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.2.4",
4
+ "version": "3.2.6",
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
@@ -3,6 +3,7 @@
3
3
 
4
4
  import {Field, Millisecond} from './types';
5
5
  import type {MapViewState} from '@deck.gl/core/typed';
6
+ import type {ExportResolutionOption} from '@kepler.gl/constants';
6
7
 
7
8
  export type MapState = {
8
9
  pitch: number;
@@ -371,8 +372,8 @@ export type BaseMapStyle = {
371
372
  };
372
373
 
373
374
  export declare type ExportImage = {
374
- ratio: 'SCREEN' | 'FOUR_BY_THREE' | 'SIXTEEN_BY_NINE' | 'CUSTOM';
375
- resolution: 'ONE_X' | 'TWO_X';
375
+ ratio: EXPORT_IMG_RATIOS;
376
+ resolution: ExportResolutionOption;
376
377
  legend: boolean;
377
378
  mapH: number;
378
379
  mapW: number;
@@ -606,4 +607,4 @@ export type TypedFilter =
606
607
  | TypedTimeRangeFilter
607
608
  | TypedSelectFilter
608
609
  | TypedMultiSelectFilter
609
- | TypedPolygonFilter;
610
+ | TypedPolygonFilter;