@kepler.gl/constants 3.0.0-alpha.1 → 3.0.0

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.
@@ -1,5 +1,5 @@
1
1
  import { scaleLinear, scaleQuantize, scaleQuantile, scaleOrdinal, scaleSqrt, scaleLog, scalePoint } from 'd3-scale';
2
- import { RGBAColor } from '@kepler.gl/types';
2
+ import { RGBAColor, EffectDescription, BaseMapStyle } from '@kepler.gl/types';
3
3
  export declare const ACTION_PREFIX = "@@kepler.gl/";
4
4
  export declare const KEPLER_UNFOLDED_BUCKET = "https://studio-public-data.foursquare.com/statics/keplergl";
5
5
  export declare const BASEMAP_ICON_PREFIX: string;
@@ -131,7 +131,7 @@ export declare const PANELS: {
131
131
  onClick: null;
132
132
  }[];
133
133
  export declare const DEFAULT_BLDG_COLOR = "#D1CEC7";
134
- export declare const DEFAULT_BACKGROUND_COLOR = "#FFFFFF";
134
+ export declare const DEFAULT_BACKGROUND_COLOR = "#000000";
135
135
  export declare const BASE_MAP_BACKGROUND_LAYER_IDS: string[];
136
136
  export declare const BACKGROUND_LAYER_GROUP_SLUG = "Background";
137
137
  export declare const THREE_D_BUILDING_LAYER_GROUP_SLUG = "3d building";
@@ -157,16 +157,7 @@ export declare const EMPTY_MAPBOX_STYLE: {
157
157
  layers: never[];
158
158
  };
159
159
  export declare const NO_BASEMAP_ICON: string;
160
- export declare const DEFAULT_MAP_STYLES: {
161
- id: string;
162
- label: string;
163
- url: string | null;
164
- icon: string;
165
- layerGroups: typeof DEFAULT_LAYER_GROUPS;
166
- complimentaryStyleId?: string;
167
- colorMode: string;
168
- style?: any;
169
- }[];
160
+ export declare const DEFAULT_MAP_STYLES: BaseMapStyle[];
170
161
  export declare const GEOJSON_FIELDS: {
171
162
  geojson: string[];
172
163
  };
@@ -224,6 +215,7 @@ export declare const ALL_FIELD_TYPES: {
224
215
  point: "point";
225
216
  array: "array";
226
217
  object: "object";
218
+ geoarrow: "geoarrow";
227
219
  };
228
220
  export declare const SORT_ORDER: {
229
221
  ASCENDING: "ASCENDING";
@@ -288,6 +280,10 @@ export declare const FIELD_TYPE_DISPLAY: {
288
280
  label: string;
289
281
  color: string;
290
282
  };
283
+ geoarrow: {
284
+ label: string;
285
+ color: string;
286
+ };
291
287
  integer: {
292
288
  label: string;
293
289
  color: string;
@@ -338,8 +334,12 @@ export declare const AGGREGATION_TYPES: {
338
334
  sum: 'sum';
339
335
  variance: 'variance';
340
336
  mode: 'mode';
341
- countUnique: 'count unique';
337
+ countUnique: 'countUnique';
342
338
  };
339
+ export declare const AGGREGATION_TYPE_OPTIONS: {
340
+ id: string;
341
+ label: string;
342
+ }[];
343
343
  export declare const linearFieldScaleFunctions: {
344
344
  color: ("quantile" | "quantize")[];
345
345
  radius: "sqrt"[];
@@ -373,7 +373,7 @@ export declare const ordinalFieldScaleFunctions: {
373
373
  export declare const ordinalFieldAggrScaleFunctions: {
374
374
  colorAggr: {
375
375
  mode: "ordinal"[];
376
- "count unique": ("quantile" | "quantize")[];
376
+ countUnique: ("quantile" | "quantize")[];
377
377
  };
378
378
  sizeAggr: {};
379
379
  };
@@ -406,7 +406,7 @@ export declare const FIELD_OPTS: {
406
406
  scale: {
407
407
  colorAggr: {
408
408
  mode: "ordinal"[];
409
- "count unique": ("quantile" | "quantize")[];
409
+ countUnique: ("quantile" | "quantize")[];
410
410
  };
411
411
  sizeAggr: {};
412
412
  color: "ordinal"[];
@@ -497,7 +497,7 @@ export declare const FIELD_OPTS: {
497
497
  scale: {
498
498
  colorAggr: {
499
499
  mode: "ordinal"[];
500
- "count unique": ("quantile" | "quantize")[];
500
+ countUnique: ("quantile" | "quantize")[];
501
501
  };
502
502
  sizeAggr: {};
503
503
  color: "ordinal"[];
@@ -514,7 +514,7 @@ export declare const FIELD_OPTS: {
514
514
  scale: {
515
515
  colorAggr: {
516
516
  mode: "ordinal"[];
517
- "count unique": ("quantile" | "quantize")[];
517
+ countUnique: ("quantile" | "quantize")[];
518
518
  };
519
519
  sizeAggr: {};
520
520
  color: "ordinal"[];
@@ -540,6 +540,20 @@ export declare const FIELD_OPTS: {
540
540
  tooltip: never[];
541
541
  };
542
542
  };
543
+ geoarrow: {
544
+ type: string;
545
+ scale: {
546
+ colorAggr: {};
547
+ sizeAggr: {};
548
+ color: never[];
549
+ radius: never[];
550
+ size: never[];
551
+ };
552
+ format: {
553
+ legend: (d: any) => string;
554
+ tooltip: never[];
555
+ };
556
+ };
543
557
  object: {
544
558
  type: string;
545
559
  scale: {};
@@ -770,6 +784,7 @@ export declare const DATASET_FORMATS: {
770
784
  geojson: "geojson";
771
785
  csv: "csv";
772
786
  keplergl: "keplergl";
787
+ arrow: "arrow";
773
788
  };
774
789
  export declare const MAP_CONTROLS: {
775
790
  visibleLayers: "visibleLayers";
@@ -791,18 +806,21 @@ export declare const PROJECTED_PIXEL_SIZE_MULTIPLIER: number;
791
806
  */
792
807
  export declare const TEXT_OUTLINE_MULTIPLIER = 5;
793
808
  export declare const dataTestIds: Record<string, string>;
794
- export declare const DEFAULT_EFFECT_TYPE = "ink";
809
+ export declare const DEFAULT_TIMEZONE = "UTC";
810
+ export declare const DEFAULT_POST_PROCESSING_EFFECT_TYPE: string;
795
811
  export declare const DEFAULT_LIGHT_COLOR: [number, number, number];
796
812
  export declare const DEFAULT_LIGHT_INTENSITY = 1;
797
813
  export declare const DEFAULT_SHADOW_INTENSITY = 0.5;
798
814
  export declare const DEFAULT_SHADOW_COLOR: [number, number, number];
799
- export declare const LIGHT_AND_SHADOW_EFFECT: {
800
- type: string;
801
- name: string;
815
+ export declare const LIGHT_AND_SHADOW_EFFECT_TIME_MODES: {
816
+ pick: "pick";
817
+ current: "current";
818
+ animation: "animation";
802
819
  };
820
+ export declare type LightAndShadowEffectTimeMode = 'pick' | 'current' | 'animation';
803
821
  export declare const DEFAULT_LIGHT_AND_SHADOW_PROPS: {
804
822
  timestamp: number;
805
- useCurrentTime: boolean;
823
+ timeMode: LightAndShadowEffectTimeMode;
806
824
  shadowIntensity: number;
807
825
  shadowColor: [number, number, number];
808
826
  sunLightColor: [number, number, number];
@@ -810,13 +828,9 @@ export declare const DEFAULT_LIGHT_AND_SHADOW_PROPS: {
810
828
  ambientLightColor: [number, number, number];
811
829
  ambientLightIntensity: number;
812
830
  };
831
+ export declare const LIGHT_AND_SHADOW_EFFECT: EffectDescription;
813
832
  export declare const POSTPROCESSING_EFFECTS: {
814
- [key: string]: {
815
- type: string;
816
- name: string;
817
- };
833
+ [key: string]: EffectDescription;
818
834
  };
819
- export declare const EFFECT_DESCS: {
820
- type: string;
821
- name: string;
822
- }[];
835
+ export declare const EFFECT_DESCRIPTIONS: EffectDescription[];
836
+ export declare type EffectType = 'ink' | 'brightnessContrast' | 'hueSaturation' | 'vibrance' | 'sepia' | 'dotScreen' | 'colorHalftone' | 'noise' | 'triangleBlur' | 'zoomBlur' | 'tiltShift' | 'edgeWork' | 'vignette' | 'magnify' | 'hexagonalPixelate' | 'lightAndShadow';