@kepler.gl/types 3.1.1 → 3.1.2

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 (2) hide show
  1. package/package.json +1 -1
  2. package/reducers.d.ts +12 -0
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.1.1",
4
+ "version": "3.1.2",
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
@@ -415,8 +415,20 @@ export type MapControlItem = {
415
415
  disableClose?: boolean;
416
416
  activeMapIndex?: number;
417
417
  };
418
+
419
+ export type MapLegendControlSettings = {
420
+ position: {
421
+ x: number;
422
+ y: number;
423
+ anchorX: 'left' | 'right';
424
+ anchorY: 'top' | 'bottom';
425
+ };
426
+ contentHeight: number;
427
+ };
428
+
418
429
  export type MapControlMapLegend = MapControlItem & {
419
430
  disableEdit?: boolean;
431
+ settings?: MapLegendControlSettings;
420
432
  };
421
433
  export type MapControls = {
422
434
  visibleLayers?: MapControlItem;