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

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,8 +1,8 @@
1
1
  import { scaleLinear, scaleQuantize, scaleQuantile, scaleOrdinal, scaleSqrt, scaleLog, scalePoint } from 'd3-scale';
2
2
  import { RGBAColor } from '@kepler.gl/types';
3
3
  export declare const ACTION_PREFIX = "@@kepler.gl/";
4
- export declare const CLOUDFRONT = "https://d1a3f4spazzrp4.cloudfront.net/kepler.gl";
5
- export declare const ICON_PREFIX: string;
4
+ export declare const KEPLER_UNFOLDED_BUCKET = "https://studio-public-data.foursquare.com/statics/keplergl";
5
+ export declare const BASEMAP_ICON_PREFIX: string;
6
6
  export declare const DEFAULT_MAPBOX_API_URL = "https://api.mapbox.com";
7
7
  export declare const TRANSITION_DURATION = 0;
8
8
  /**
@@ -121,30 +121,52 @@ export declare const SIDEBAR_PANELS: {
121
121
  label: string;
122
122
  onClick: null;
123
123
  }[];
124
+ export declare const PANEL_VIEW_TOGGLES: {
125
+ list: "list";
126
+ byDataset: "byDataset";
127
+ };
124
128
  export declare const PANELS: {
125
129
  id: string;
126
130
  label: string;
127
131
  onClick: null;
128
132
  }[];
129
- declare type DEFAULT_LAYER_GROUP = {
133
+ export declare const DEFAULT_BLDG_COLOR = "#D1CEC7";
134
+ export declare const DEFAULT_BACKGROUND_COLOR = "#FFFFFF";
135
+ export declare const BASE_MAP_BACKGROUND_LAYER_IDS: string[];
136
+ export declare const BACKGROUND_LAYER_GROUP_SLUG = "Background";
137
+ export declare const THREE_D_BUILDING_LAYER_GROUP_SLUG = "3d building";
138
+ export declare type DEFAULT_LAYER_GROUP = {
130
139
  slug: string;
131
140
  filter: (value: any) => boolean;
132
141
  defaultVisibility: boolean;
142
+ isVisibilityToggleAvailable?: boolean;
143
+ isMoveToTopAvailable?: boolean;
144
+ isColorPickerAvailable?: boolean;
133
145
  };
146
+ export declare const BACKGROUND_LAYER_GROUP: DEFAULT_LAYER_GROUP;
134
147
  export declare const DEFAULT_LAYER_GROUPS: DEFAULT_LAYER_GROUP[];
135
- export declare const DEFAULT_MAP_STYLES: ({
136
- id: string;
137
- label: string;
138
- url: string;
139
- icon: string;
140
- layerGroups: DEFAULT_LAYER_GROUP[];
141
- } | {
148
+ export declare const BASE_MAP_COLOR_MODES: {
149
+ NONE: "NONE";
150
+ DARK: "DARK";
151
+ LIGHT: "LIGHT";
152
+ };
153
+ export declare const NO_MAP_ID = "no_map";
154
+ export declare const EMPTY_MAPBOX_STYLE: {
155
+ version: number;
156
+ sources: {};
157
+ layers: never[];
158
+ };
159
+ export declare const NO_BASEMAP_ICON: string;
160
+ export declare const DEFAULT_MAP_STYLES: {
142
161
  id: string;
143
162
  label: string;
144
- url: string;
163
+ url: string | null;
145
164
  icon: string;
146
- layerGroups?: undefined;
147
- })[];
165
+ layerGroups: typeof DEFAULT_LAYER_GROUPS;
166
+ complimentaryStyleId?: string;
167
+ colorMode: string;
168
+ style?: any;
169
+ }[];
148
170
  export declare const GEOJSON_FIELDS: {
149
171
  geojson: string[];
150
172
  };
@@ -167,6 +189,12 @@ export declare const FILTER_TYPES: {
167
189
  multiSelect: "multiSelect";
168
190
  polygon: "polygon";
169
191
  };
192
+ export declare const FILTER_VIEW_TYPES: {
193
+ side: "side";
194
+ enlarged: "enlarged";
195
+ minified: "minified";
196
+ };
197
+ export declare const DEFAULT_FILTER_VIEW_TYPE: "side";
170
198
  export declare const SCALE_TYPES: {
171
199
  ordinal: "ordinal";
172
200
  quantile: "quantile";
@@ -194,6 +222,8 @@ export declare const ALL_FIELD_TYPES: {
194
222
  string: "string";
195
223
  timestamp: "timestamp";
196
224
  point: "point";
225
+ array: "array";
226
+ object: "object";
197
227
  };
198
228
  export declare const SORT_ORDER: {
199
229
  ASCENDING: "ASCENDING";
@@ -207,6 +237,7 @@ export declare const TABLE_OPTION: {
207
237
  PIN: "PIN";
208
238
  UNPIN: "UNPIN";
209
239
  COPY: "COPY";
240
+ FORMAT_COLUMN: "FORMAT_COLUMN";
210
241
  };
211
242
  export declare const TABLE_OPTION_LIST: ({
212
243
  value: "SORT_ASC";
@@ -238,6 +269,11 @@ export declare const TABLE_OPTION_LIST: ({
238
269
  display: string;
239
270
  icon: string;
240
271
  condition?: undefined;
272
+ } | {
273
+ value: "FORMAT_COLUMN";
274
+ display: string;
275
+ icon: string;
276
+ condition?: undefined;
241
277
  })[];
242
278
  export declare const FIELD_TYPE_DISPLAY: {
243
279
  boolean: {
@@ -272,6 +308,14 @@ export declare const FIELD_TYPE_DISPLAY: {
272
308
  label: string;
273
309
  color: string;
274
310
  };
311
+ array: {
312
+ label: string;
313
+ color: string;
314
+ };
315
+ object: {
316
+ label: string;
317
+ color: string;
318
+ };
275
319
  };
276
320
  export declare const FIELD_COLORS: {
277
321
  default: string;
@@ -466,6 +510,7 @@ export declare const FIELD_OPTS: {
466
510
  };
467
511
  };
468
512
  date: {
513
+ type: string;
469
514
  scale: {
470
515
  colorAggr: {
471
516
  mode: "ordinal"[];
@@ -495,6 +540,22 @@ export declare const FIELD_OPTS: {
495
540
  tooltip: never[];
496
541
  };
497
542
  };
543
+ object: {
544
+ type: string;
545
+ scale: {};
546
+ format: {
547
+ legend: (d: any) => string;
548
+ tooltip: never[];
549
+ };
550
+ };
551
+ array: {
552
+ type: string;
553
+ scale: {};
554
+ format: {
555
+ legend: (d: any) => string;
556
+ tooltip: never[];
557
+ };
558
+ };
498
559
  };
499
560
  export declare const CHANNEL_SCALE_SUPPORTED_FIELDS: {
500
561
  [id: string]: string[];
@@ -507,6 +568,21 @@ export declare const DEFAULT_LAYER_COLOR: {
507
568
  };
508
569
  export declare const DEFAULT_TOOLTIP_FIELDS: any[];
509
570
  export declare const NO_VALUE_COLOR: RGBAColor;
571
+ export declare const DEFAULT_PICKING_RADIUS = 3;
572
+ export declare const OVERLAY_BLENDINGS: {
573
+ normal: {
574
+ label: string;
575
+ value: string;
576
+ };
577
+ screen: {
578
+ label: string;
579
+ value: string;
580
+ };
581
+ darken: {
582
+ label: string;
583
+ value: string;
584
+ };
585
+ };
510
586
  export declare const LAYER_BLENDINGS: {
511
587
  additive: {
512
588
  label: string;
@@ -551,6 +627,7 @@ export declare type ExportImage = {
551
627
  exporting: boolean;
552
628
  processing: boolean;
553
629
  error: Error | false;
630
+ escapeXhtmlForWebpack?: boolean;
554
631
  center: boolean;
555
632
  };
556
633
  export declare type ImageRatioOption = {
@@ -601,7 +678,7 @@ export declare const EXPORT_MAP_FORMAT_OPTIONS: {
601
678
  label: any;
602
679
  available: boolean;
603
680
  }[];
604
- export declare function getHTMLMapModeTileUrl(mode: any): string;
681
+ export declare function getHTMLMapModeTileUrl(mode: string): string;
605
682
  export declare const EXPORT_HTML_MAP_MODE_OPTIONS: {
606
683
  id: string;
607
684
  label: string;
@@ -620,7 +697,7 @@ export declare const DEFAULT_NOTIFICATION_TOPICS: {
620
697
  global: "global";
621
698
  file: "file";
622
699
  };
623
- export declare const THROTTLE_NOTIFICATION_TIME = 2500;
700
+ export declare const THROTTLE_NOTIFICATION_TIME = 330;
624
701
  export declare const BASE_SPEED = 600;
625
702
  export declare const FPS = 60;
626
703
  /**
@@ -659,16 +736,18 @@ export declare const GEOCODER_LAYER_ID = "geocoder_layer";
659
736
  export declare const GEOCODER_GEO_OFFSET = 0.05;
660
737
  export declare const GEOCODER_ICON_COLOR: [number, number, number];
661
738
  export declare const GEOCODER_ICON_SIZE = 80;
739
+ export declare const EDITOR_LAYER_ID = "kepler_editor_layer";
740
+ export declare const EDITOR_LAYER_PICKING_RADIUS = 6;
662
741
  export declare const EDITOR_MODES: {
663
- READ_ONLY: any;
664
- DRAW_POLYGON: any;
665
- DRAW_RECTANGLE: any;
666
- EDIT: any;
742
+ DRAW_POLYGON: string;
743
+ DRAW_RECTANGLE: string;
744
+ EDIT: string;
667
745
  };
668
746
  export declare const PLOT_TYPES: {
669
747
  histogram: "histogram";
670
748
  lineChart: "lineChart";
671
749
  };
750
+ export declare const INIT_FILTER_ITEMS_IN_DROPDOWN = 100;
672
751
  /**
673
752
  * Max number of filter value buffers that deck.gl provides
674
753
  */
@@ -699,6 +778,7 @@ export declare const MAP_CONTROLS: {
699
778
  splitMap: "splitMap";
700
779
  mapDraw: "mapDraw";
701
780
  mapLocale: "mapLocale";
781
+ effect: "effect";
702
782
  };
703
783
  /**
704
784
  * A multiplier for screen-space width/scale for Arc, Line, Icon and Text layers.
@@ -706,4 +786,37 @@ export declare const MAP_CONTROLS: {
706
786
  * https://github.com/visgl/deck.gl/blob/master/docs/upgrade-guide.md
707
787
  */
708
788
  export declare const PROJECTED_PIXEL_SIZE_MULTIPLIER: number;
709
- export {};
789
+ /**
790
+ * Maximum value for text outline width
791
+ */
792
+ export declare const TEXT_OUTLINE_MULTIPLIER = 5;
793
+ export declare const dataTestIds: Record<string, string>;
794
+ export declare const DEFAULT_EFFECT_TYPE = "ink";
795
+ export declare const DEFAULT_LIGHT_COLOR: [number, number, number];
796
+ export declare const DEFAULT_LIGHT_INTENSITY = 1;
797
+ export declare const DEFAULT_SHADOW_INTENSITY = 0.5;
798
+ export declare const DEFAULT_SHADOW_COLOR: [number, number, number];
799
+ export declare const LIGHT_AND_SHADOW_EFFECT: {
800
+ type: string;
801
+ name: string;
802
+ };
803
+ export declare const DEFAULT_LIGHT_AND_SHADOW_PROPS: {
804
+ timestamp: number;
805
+ useCurrentTime: boolean;
806
+ shadowIntensity: number;
807
+ shadowColor: [number, number, number];
808
+ sunLightColor: [number, number, number];
809
+ sunLightIntensity: number;
810
+ ambientLightColor: [number, number, number];
811
+ ambientLightIntensity: number;
812
+ };
813
+ export declare const POSTPROCESSING_EFFECTS: {
814
+ [key: string]: {
815
+ type: string;
816
+ name: string;
817
+ };
818
+ };
819
+ export declare const EFFECT_DESCS: {
820
+ type: string;
821
+ name: string;
822
+ }[];