@kepler.gl/constants 3.1.0-alpha.1 → 3.1.0-alpha.3

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.
@@ -0,0 +1,842 @@
1
+ import { BaseMapStyle, EffectDescription, RGBAColor, SyncTimelineMode } from '@kepler.gl/types';
2
+ import { scaleLinear, scaleLog, scaleOrdinal, scalePoint, scaleQuantile, scaleQuantize, scaleSqrt, scaleThreshold } from 'd3-scale';
3
+ export declare const ACTION_PREFIX = "@@kepler.gl/";
4
+ export declare const KEPLER_UNFOLDED_BUCKET = "https://studio-public-data.foursquare.com/statics/keplergl";
5
+ export declare const BASEMAP_ICON_PREFIX: string;
6
+ export declare const DEFAULT_MAPBOX_API_URL = "https://api.mapbox.com";
7
+ export declare const TRANSITION_DURATION = 0;
8
+ /**
9
+ * Modal id: data table
10
+ * @constant
11
+ * @type {string}
12
+ * @public
13
+ */
14
+ export declare const DATA_TABLE_ID = "dataTable";
15
+ /**
16
+ * Modal id: delete dataset confirm dialog
17
+ * @constant
18
+ * @type {string}
19
+ * @public
20
+ */
21
+ export declare const DELETE_DATA_ID = "deleteData";
22
+ /**
23
+ * Modal id: add data modal
24
+ * @constant
25
+ * @type {string}
26
+ * @public
27
+ */
28
+ export declare const ADD_DATA_ID = "addData";
29
+ /**
30
+ * Modal id: export image modal
31
+ * @constant
32
+ * @type {string}
33
+ * @public
34
+ */
35
+ export declare const EXPORT_IMAGE_ID = "exportImage";
36
+ /**
37
+ * Modal id: export data modal
38
+ * @constant
39
+ * @type {string}
40
+ * @public
41
+ */
42
+ export declare const EXPORT_DATA_ID = "exportData";
43
+ /**
44
+ * Modal id: add custom map style modal
45
+ * @constant
46
+ * @type {string}
47
+ * @public
48
+ */
49
+ export declare const ADD_MAP_STYLE_ID = "addMapStyle";
50
+ /**
51
+ * Modal id: export map modal
52
+ * @constant
53
+ * @type {string}
54
+ * @public
55
+ */
56
+ export declare const EXPORT_MAP_ID = "exportMap";
57
+ /**
58
+ * Modal id: save map modal
59
+ * @constant
60
+ * @type {string}
61
+ * @public
62
+ */
63
+ export declare const SAVE_MAP_ID = "saveMap";
64
+ /**
65
+ * Modal id: confirm to overwrite saved map
66
+ * @constant
67
+ * @type {string}
68
+ * @public
69
+ */
70
+ export declare const OVERWRITE_MAP_ID = "overwriteMap";
71
+ /**
72
+ * Modal id: share map url modal
73
+ * @constant
74
+ * @type {string}
75
+ * @public
76
+ */
77
+ export declare const SHARE_MAP_ID = "shareMap";
78
+ export declare const KEPLER_GL_NAME = "kepler.gl";
79
+ export declare const KEPLER_GL_VERSION = "__PACKAGE_VERSION__";
80
+ export declare const KEPLER_GL_WEBSITE = "http://kepler.gl/";
81
+ export declare const DIMENSIONS: {
82
+ sidePanel: {
83
+ width: number;
84
+ margin: {
85
+ top: number;
86
+ left: number;
87
+ bottom: number;
88
+ right: number;
89
+ };
90
+ headerHeight: number;
91
+ };
92
+ mapControl: {
93
+ width: number;
94
+ padding: number;
95
+ mapLegend: {
96
+ pinned: {
97
+ bottom: number;
98
+ right: number;
99
+ };
100
+ };
101
+ };
102
+ };
103
+ /**
104
+ * Theme name that can be passed to `KeplerGl` `prop.theme`.
105
+ * Available themes are `THEME.light` and `THEME.dark`. Default theme is `THEME.dark`
106
+ * @constant
107
+ * @type {object}
108
+ * @public
109
+ * @example
110
+ * ```js
111
+ * const Map = () => <KeplerGl theme={THEME.light} id="map"/>
112
+ * ```
113
+ */
114
+ export declare const THEME: {
115
+ light: "light";
116
+ dark: "dark";
117
+ base: "base";
118
+ };
119
+ export declare const SIDEBAR_PANELS: {
120
+ id: string;
121
+ label: string;
122
+ onClick: null;
123
+ }[];
124
+ export declare const PANEL_VIEW_TOGGLES: {
125
+ list: "list";
126
+ byDataset: "byDataset";
127
+ };
128
+ export declare const PANELS: {
129
+ id: string;
130
+ label: string;
131
+ onClick: null;
132
+ }[];
133
+ export declare const DEFAULT_BLDG_COLOR = "#D1CEC7";
134
+ export declare const DEFAULT_BACKGROUND_COLOR = "#000000";
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 = {
139
+ slug: string;
140
+ filter: (value: any) => boolean;
141
+ defaultVisibility: boolean;
142
+ isVisibilityToggleAvailable?: boolean;
143
+ isMoveToTopAvailable?: boolean;
144
+ isColorPickerAvailable?: boolean;
145
+ };
146
+ export declare const BACKGROUND_LAYER_GROUP: DEFAULT_LAYER_GROUP;
147
+ export declare const DEFAULT_LAYER_GROUPS: DEFAULT_LAYER_GROUP[];
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: BaseMapStyle[];
161
+ export declare const GEOJSON_FIELDS: {
162
+ geojson: string[];
163
+ };
164
+ export declare const ICON_FIELDS: {
165
+ icon: string[];
166
+ };
167
+ export declare const TRIP_POINT_FIELDS: [string, string][];
168
+ export declare const ALTITUDE_FIELDS: string[];
169
+ export declare const TRIP_ARC_FIELDS: {
170
+ lat0: string;
171
+ lng0: string;
172
+ lat1: string;
173
+ lng1: string;
174
+ };
175
+ export declare const FILTER_TYPES: {
176
+ range: "range";
177
+ select: "select";
178
+ input: "input";
179
+ timeRange: "timeRange";
180
+ multiSelect: "multiSelect";
181
+ polygon: "polygon";
182
+ };
183
+ export declare const FILTER_VIEW_TYPES: {
184
+ side: "side";
185
+ enlarged: "enlarged";
186
+ minified: "minified";
187
+ };
188
+ export declare const DEFAULT_FILTER_VIEW_TYPE: "side";
189
+ export declare type SCALE_TYPES_DEF = {
190
+ ordinal: 'ordinal';
191
+ quantile: 'quantile';
192
+ quantize: 'quantize';
193
+ linear: 'linear';
194
+ sqrt: 'sqrt';
195
+ log: 'log';
196
+ point: 'point';
197
+ threshold: 'threshold';
198
+ custom: 'custom';
199
+ };
200
+ export declare const SCALE_TYPES: SCALE_TYPES_DEF;
201
+ export declare const SCALE_TYPE_NAMES: {
202
+ [key in keyof SCALE_TYPES_DEF]: string;
203
+ };
204
+ export declare type SCALE_FUNC_TYPE = {
205
+ [key in keyof SCALE_TYPES_DEF]: () => number;
206
+ };
207
+ export declare const SCALE_FUNC: {
208
+ linear: typeof scaleLinear;
209
+ quantize: typeof scaleQuantize;
210
+ quantile: typeof scaleQuantile;
211
+ ordinal: typeof scaleOrdinal;
212
+ sqrt: typeof scaleSqrt;
213
+ log: typeof scaleLog;
214
+ point: typeof scalePoint;
215
+ threshold: typeof scaleThreshold;
216
+ custom: typeof scaleThreshold;
217
+ };
218
+ export declare const ALL_FIELD_TYPES: {
219
+ boolean: "boolean";
220
+ date: "date";
221
+ geojson: "geojson";
222
+ integer: "integer";
223
+ real: "real";
224
+ string: "string";
225
+ timestamp: "timestamp";
226
+ point: "point";
227
+ array: "array";
228
+ object: "object";
229
+ geoarrow: "geoarrow";
230
+ h3: "h3";
231
+ };
232
+ export declare const SORT_ORDER: {
233
+ ASCENDING: "ASCENDING";
234
+ DESCENDING: "DESCENDING";
235
+ UNSORT: "UNSORT";
236
+ };
237
+ export declare const TABLE_OPTION: {
238
+ SORT_ASC: "SORT_ASC";
239
+ SORT_DES: "SORT_DES";
240
+ UNSORT: "UNSORT";
241
+ PIN: "PIN";
242
+ UNPIN: "UNPIN";
243
+ COPY: "COPY";
244
+ FORMAT_COLUMN: "FORMAT_COLUMN";
245
+ };
246
+ export declare type TableOption = {
247
+ value: 'SORT_ASC' | 'SORT_DES' | 'UNSORT' | 'PIN' | 'UNPIN' | 'COPY' | 'FORMAT_COLUMN';
248
+ display: string;
249
+ icon: string;
250
+ condition?: (props: any) => boolean;
251
+ };
252
+ export declare const TABLE_OPTION_LIST: TableOption[];
253
+ export declare const FIELD_TYPE_DISPLAY: {
254
+ boolean: {
255
+ label: string;
256
+ color: string;
257
+ };
258
+ date: {
259
+ label: string;
260
+ color: string;
261
+ };
262
+ geojson: {
263
+ label: string;
264
+ color: string;
265
+ };
266
+ geoarrow: {
267
+ label: string;
268
+ color: string;
269
+ };
270
+ integer: {
271
+ label: string;
272
+ color: string;
273
+ };
274
+ real: {
275
+ label: string;
276
+ color: string;
277
+ };
278
+ string: {
279
+ label: string;
280
+ color: string;
281
+ };
282
+ timestamp: {
283
+ label: string;
284
+ color: string;
285
+ };
286
+ point: {
287
+ label: string;
288
+ color: string;
289
+ };
290
+ array: {
291
+ label: string;
292
+ color: string;
293
+ };
294
+ object: {
295
+ label: string;
296
+ color: string;
297
+ };
298
+ h3: {
299
+ label: string;
300
+ color: string;
301
+ };
302
+ };
303
+ export declare const FIELD_COLORS: {
304
+ default: string;
305
+ };
306
+ export declare const HIGHLIGH_COLOR_3D: RGBAColor;
307
+ export declare const CHANNEL_SCALES: {
308
+ color: "color";
309
+ radius: "radius";
310
+ size: "size";
311
+ colorAggr: "colorAggr";
312
+ sizeAggr: "sizeAggr";
313
+ };
314
+ export declare const AGGREGATION_TYPES: {
315
+ count: 'count';
316
+ average: 'average';
317
+ maximum: 'maximum';
318
+ minimum: 'minimum';
319
+ median: 'median';
320
+ stdev: 'stdev';
321
+ sum: 'sum';
322
+ variance: 'variance';
323
+ mode: 'mode';
324
+ countUnique: 'countUnique';
325
+ };
326
+ export declare const AGGREGATION_TYPE_OPTIONS: {
327
+ id: string;
328
+ label: string;
329
+ }[];
330
+ export declare const linearFieldScaleFunctions: {
331
+ color: ("quantile" | "quantize" | "custom")[];
332
+ radius: "sqrt"[];
333
+ size: ("linear" | "sqrt" | "log")[];
334
+ };
335
+ export declare const linearFieldAggrScaleFunctions: {
336
+ colorAggr: {
337
+ average: ("quantile" | "quantize")[];
338
+ maximum: ("quantile" | "quantize")[];
339
+ minimum: ("quantile" | "quantize")[];
340
+ median: ("quantile" | "quantize")[];
341
+ stdev: ("quantile" | "quantize")[];
342
+ sum: ("quantile" | "quantize")[];
343
+ variance: ("quantile" | "quantize")[];
344
+ };
345
+ sizeAggr: {
346
+ average: ("linear" | "sqrt" | "log")[];
347
+ maximum: ("linear" | "sqrt" | "log")[];
348
+ minimum: ("linear" | "sqrt" | "log")[];
349
+ median: ("linear" | "sqrt" | "log")[];
350
+ stdev: ("linear" | "sqrt" | "log")[];
351
+ sum: ("linear" | "sqrt" | "log")[];
352
+ variance: ("linear" | "sqrt" | "log")[];
353
+ };
354
+ };
355
+ export declare const ordinalFieldScaleFunctions: {
356
+ color: "ordinal"[];
357
+ radius: "point"[];
358
+ size: "point"[];
359
+ };
360
+ export declare const ordinalFieldAggrScaleFunctions: {
361
+ colorAggr: {
362
+ mode: "ordinal"[];
363
+ countUnique: ("quantile" | "quantize")[];
364
+ };
365
+ sizeAggr: {};
366
+ };
367
+ export declare const notSupportedScaleOpts: {
368
+ color: never[];
369
+ radius: never[];
370
+ size: never[];
371
+ };
372
+ export declare const notSupportAggrOpts: {
373
+ colorAggr: {};
374
+ sizeAggr: {};
375
+ };
376
+ /**
377
+ * Default aggregation are based on ocunt
378
+ */
379
+ export declare const DEFAULT_AGGREGATION: {
380
+ colorAggr: {
381
+ count: ("quantile" | "quantize")[];
382
+ };
383
+ sizeAggr: {
384
+ count: ("linear" | "sqrt" | "log")[];
385
+ };
386
+ };
387
+ /**
388
+ * Define what type of scale operation is allowed on each type of fields
389
+ */
390
+ export declare const FIELD_OPTS: {
391
+ string: {
392
+ type: string;
393
+ scale: {
394
+ colorAggr: {
395
+ mode: "ordinal"[];
396
+ countUnique: ("quantile" | "quantize")[];
397
+ };
398
+ sizeAggr: {};
399
+ color: "ordinal"[];
400
+ radius: "point"[];
401
+ size: "point"[];
402
+ };
403
+ format: {
404
+ legend: (d: any) => any;
405
+ tooltip: never[];
406
+ };
407
+ };
408
+ real: {
409
+ type: string;
410
+ scale: {
411
+ colorAggr: {
412
+ average: ("quantile" | "quantize")[];
413
+ maximum: ("quantile" | "quantize")[];
414
+ minimum: ("quantile" | "quantize")[];
415
+ median: ("quantile" | "quantize")[];
416
+ stdev: ("quantile" | "quantize")[];
417
+ sum: ("quantile" | "quantize")[];
418
+ variance: ("quantile" | "quantize")[];
419
+ };
420
+ sizeAggr: {
421
+ average: ("linear" | "sqrt" | "log")[];
422
+ maximum: ("linear" | "sqrt" | "log")[];
423
+ minimum: ("linear" | "sqrt" | "log")[];
424
+ median: ("linear" | "sqrt" | "log")[];
425
+ stdev: ("linear" | "sqrt" | "log")[];
426
+ sum: ("linear" | "sqrt" | "log")[];
427
+ variance: ("linear" | "sqrt" | "log")[];
428
+ };
429
+ color: ("quantile" | "quantize" | "custom")[];
430
+ radius: "sqrt"[];
431
+ size: ("linear" | "sqrt" | "log")[];
432
+ };
433
+ format: {
434
+ legend: (d: any) => any;
435
+ tooltip: string[];
436
+ };
437
+ };
438
+ timestamp: {
439
+ type: string;
440
+ scale: {
441
+ colorAggr: {};
442
+ sizeAggr: {};
443
+ color: ("quantile" | "quantize" | "custom")[];
444
+ radius: "sqrt"[];
445
+ size: ("linear" | "sqrt" | "log")[];
446
+ };
447
+ format: {
448
+ legend: (d: any) => any;
449
+ tooltip: string[];
450
+ };
451
+ };
452
+ integer: {
453
+ type: string;
454
+ scale: {
455
+ colorAggr: {
456
+ average: ("quantile" | "quantize")[];
457
+ maximum: ("quantile" | "quantize")[];
458
+ minimum: ("quantile" | "quantize")[];
459
+ median: ("quantile" | "quantize")[];
460
+ stdev: ("quantile" | "quantize")[];
461
+ sum: ("quantile" | "quantize")[];
462
+ variance: ("quantile" | "quantize")[];
463
+ };
464
+ sizeAggr: {
465
+ average: ("linear" | "sqrt" | "log")[];
466
+ maximum: ("linear" | "sqrt" | "log")[];
467
+ minimum: ("linear" | "sqrt" | "log")[];
468
+ median: ("linear" | "sqrt" | "log")[];
469
+ stdev: ("linear" | "sqrt" | "log")[];
470
+ sum: ("linear" | "sqrt" | "log")[];
471
+ variance: ("linear" | "sqrt" | "log")[];
472
+ };
473
+ color: ("quantile" | "quantize" | "custom")[];
474
+ radius: "sqrt"[];
475
+ size: ("linear" | "sqrt" | "log")[];
476
+ };
477
+ format: {
478
+ legend: (d: any) => any;
479
+ tooltip: string[];
480
+ };
481
+ };
482
+ boolean: {
483
+ type: string;
484
+ scale: {
485
+ colorAggr: {
486
+ mode: "ordinal"[];
487
+ countUnique: ("quantile" | "quantize")[];
488
+ };
489
+ sizeAggr: {};
490
+ color: "ordinal"[];
491
+ radius: "point"[];
492
+ size: "point"[];
493
+ };
494
+ format: {
495
+ legend: (d: any) => any;
496
+ tooltip: string[];
497
+ };
498
+ };
499
+ date: {
500
+ type: string;
501
+ scale: {
502
+ colorAggr: {
503
+ mode: "ordinal"[];
504
+ countUnique: ("quantile" | "quantize")[];
505
+ };
506
+ sizeAggr: {};
507
+ color: "ordinal"[];
508
+ radius: "point"[];
509
+ size: "point"[];
510
+ };
511
+ format: {
512
+ legend: (d: any) => any;
513
+ tooltip: string[];
514
+ };
515
+ };
516
+ geojson: {
517
+ type: string;
518
+ scale: {
519
+ colorAggr: {};
520
+ sizeAggr: {};
521
+ color: never[];
522
+ radius: never[];
523
+ size: never[];
524
+ };
525
+ format: {
526
+ legend: () => string;
527
+ tooltip: never[];
528
+ };
529
+ };
530
+ geoarrow: {
531
+ type: string;
532
+ scale: {
533
+ colorAggr: {};
534
+ sizeAggr: {};
535
+ color: never[];
536
+ radius: never[];
537
+ size: never[];
538
+ };
539
+ format: {
540
+ legend: () => string;
541
+ tooltip: never[];
542
+ };
543
+ };
544
+ object: {
545
+ type: string;
546
+ scale: {};
547
+ format: {
548
+ legend: () => string;
549
+ tooltip: never[];
550
+ };
551
+ };
552
+ array: {
553
+ type: string;
554
+ scale: {};
555
+ format: {
556
+ legend: () => string;
557
+ tooltip: never[];
558
+ };
559
+ };
560
+ h3: {
561
+ type: string;
562
+ scale: {
563
+ colorAggr: {};
564
+ sizeAggr: {};
565
+ color: never[];
566
+ radius: never[];
567
+ size: never[];
568
+ };
569
+ format: {
570
+ legend: (d: any) => string;
571
+ tooltip: never[];
572
+ };
573
+ };
574
+ };
575
+ export declare const CHANNEL_SCALE_SUPPORTED_FIELDS: {
576
+ [id: string]: string[];
577
+ };
578
+ export declare const DEFAULT_LAYER_COLOR: {
579
+ tripArc: string;
580
+ begintrip_lat: string;
581
+ dropoff_lat: string;
582
+ request_lat: string;
583
+ };
584
+ export declare const DEFAULT_LAYER_COLOR_PALETTE = "Global Warming";
585
+ export declare const DEFAULT_LAYER_COLOR_PALETTE_STEPS = 6;
586
+ export declare const DEFAULT_TOOLTIP_FIELDS: any[];
587
+ export declare const NO_VALUE_COLOR: RGBAColor;
588
+ export declare const DEFAULT_PICKING_RADIUS = 3;
589
+ export declare const OVERLAY_BLENDINGS: {
590
+ normal: {
591
+ label: string;
592
+ value: string;
593
+ };
594
+ screen: {
595
+ label: string;
596
+ value: string;
597
+ };
598
+ darken: {
599
+ label: string;
600
+ value: string;
601
+ };
602
+ };
603
+ export declare const LAYER_BLENDINGS: {
604
+ additive: {
605
+ label: string;
606
+ blendFunc: string[];
607
+ blendEquation: string;
608
+ };
609
+ normal: {
610
+ label: string;
611
+ blendFunc: string[];
612
+ blendEquation: string[];
613
+ };
614
+ subtractive: {
615
+ label: string;
616
+ blendFunc: string[];
617
+ blendEquation: string[];
618
+ };
619
+ };
620
+ export declare const MAX_DEFAULT_TOOLTIPS = 5;
621
+ export declare const RESOLUTIONS: {
622
+ ONE_X: "ONE_X";
623
+ TWO_X: "TWO_X";
624
+ };
625
+ export declare const EXPORT_IMG_RATIOS: {
626
+ SCREEN: "SCREEN";
627
+ FOUR_BY_THREE: "FOUR_BY_THREE";
628
+ SIXTEEN_BY_NINE: "SIXTEEN_BY_NINE";
629
+ CUSTOM: "CUSTOM";
630
+ };
631
+ export declare type ExportImage = {
632
+ ratio: keyof typeof EXPORT_IMG_RATIOS;
633
+ resolution: keyof typeof RESOLUTIONS;
634
+ legend: boolean;
635
+ mapH: number;
636
+ mapW: number;
637
+ imageSize: {
638
+ zoomOffset: number;
639
+ scale: number;
640
+ imageW: number;
641
+ imageH: number;
642
+ };
643
+ imageDataUri: string;
644
+ exporting: boolean;
645
+ processing: boolean;
646
+ error: Error | false;
647
+ escapeXhtmlForWebpack?: boolean;
648
+ center: boolean;
649
+ };
650
+ export declare type ImageRatioOption = {
651
+ id: keyof typeof EXPORT_IMG_RATIOS;
652
+ label: string;
653
+ hidden?: boolean;
654
+ getSize: (screenW: number, screenH: number) => {
655
+ width: number;
656
+ height: number;
657
+ };
658
+ };
659
+ export declare const ScreenRatioOption: ImageRatioOption;
660
+ export declare const CustomRatioOption: ImageRatioOption;
661
+ export declare const FourByThreeRatioOption: ImageRatioOption;
662
+ export declare const SixteenByNineRatioOption: ImageRatioOption;
663
+ export declare const EXPORT_IMG_RATIO_OPTIONS: ReadonlyArray<ImageRatioOption>;
664
+ export declare type ImageResolutionOption = {
665
+ id: keyof typeof RESOLUTIONS;
666
+ label: string;
667
+ available: boolean;
668
+ scale: number;
669
+ getSize: (screenW: number, screenH: number) => {
670
+ width: number;
671
+ height: number;
672
+ };
673
+ };
674
+ export declare const OneXResolutionOption: ImageResolutionOption;
675
+ export declare const TwoXResolutionOption: ImageResolutionOption;
676
+ export declare const EXPORT_IMG_RESOLUTION_OPTIONS: ReadonlyArray<ImageResolutionOption>;
677
+ export declare const EXPORT_DATA_TYPE: {
678
+ CSV: "CSV";
679
+ };
680
+ export declare const EXPORT_DATA_TYPE_OPTIONS: {
681
+ id: "CSV";
682
+ label: string;
683
+ available: boolean;
684
+ }[];
685
+ export declare const EXPORT_MAP_FORMATS: {
686
+ HTML: "HTML";
687
+ JSON: "JSON";
688
+ };
689
+ export declare const EXPORT_HTML_MAP_MODES: {
690
+ READ: "READ";
691
+ EDIT: "EDIT";
692
+ };
693
+ export declare const EXPORT_MAP_FORMAT_OPTIONS: {
694
+ id: string;
695
+ label: any;
696
+ available: boolean;
697
+ }[];
698
+ export declare function getHTMLMapModeTileUrl(mode: string): string;
699
+ export declare const EXPORT_HTML_MAP_MODE_OPTIONS: {
700
+ id: string;
701
+ label: string;
702
+ available: boolean;
703
+ url: string;
704
+ }[];
705
+ export declare const DEFAULT_UUID_COUNT = 6;
706
+ export declare const DEFAULT_NOTIFICATION_MESSAGE = "MESSAGE_NOT_PROVIDED";
707
+ export declare const DEFAULT_NOTIFICATION_TYPES: {
708
+ info: "info";
709
+ error: "error";
710
+ warning: "warning";
711
+ success: "success";
712
+ };
713
+ export declare const DEFAULT_NOTIFICATION_TOPICS: {
714
+ global: "global";
715
+ file: "file";
716
+ };
717
+ export declare const THROTTLE_NOTIFICATION_TIME = 330;
718
+ export declare const BASE_SPEED = 600;
719
+ export declare const FPS = 60;
720
+ /**
721
+ * 4 Animation Window Types
722
+ * 1. free
723
+ * |-> |->
724
+ * Current time is a fixed range, animation controller calls next animation frames continuously to animation a moving window
725
+ * The increment id based on domain / BASE_SPEED * SPEED
726
+ *
727
+ * 2. incremental
728
+ * | |->
729
+ * Same as free, current time is a growing range, only the max value of range increment during animation.
730
+ * The increment is also based on domain / BASE_SPEED * SPEED
731
+ *
732
+ * 3. point
733
+ * o -> o
734
+ * Current time is a point, animation controller calls next animation frame continuously to animation a moving point
735
+ * The increment is based on domain / BASE_SPEED * SPEED
736
+ *
737
+ * 4. interval
738
+ * o ~> o
739
+ * Current time is a point. An array of sorted time steps need to be provided.
740
+ * animation controller calls next animation at a interval when the point jumps to the next step
741
+ */
742
+ export declare const ANIMATION_WINDOW: {
743
+ free: "free";
744
+ incremental: "incremental";
745
+ point: "point";
746
+ interval: "interval";
747
+ };
748
+ export declare const DEFAULT_TIME_FORMAT = "MM/DD/YY HH:mm:ssa";
749
+ export declare const SPEED_CONTROL_RANGE: [number, number];
750
+ export declare const SPEED_CONTROL_STEP = 0.001;
751
+ export declare const GEOCODER_DATASET_NAME = "geocoder_dataset";
752
+ export declare const GEOCODER_LAYER_ID = "geocoder_layer";
753
+ export declare const GEOCODER_GEO_OFFSET = 0.05;
754
+ export declare const GEOCODER_ICON_COLOR: [number, number, number];
755
+ export declare const GEOCODER_ICON_SIZE = 80;
756
+ export declare const EDITOR_LAYER_ID = "kepler_editor_layer";
757
+ export declare const EDITOR_LAYER_PICKING_RADIUS = 6;
758
+ export declare const EDITOR_MODES: {
759
+ DRAW_POLYGON: string;
760
+ DRAW_RECTANGLE: string;
761
+ EDIT: string;
762
+ };
763
+ export declare const PLOT_TYPES: {
764
+ histogram: "histogram";
765
+ lineChart: "lineChart";
766
+ };
767
+ export declare const INIT_FILTER_ITEMS_IN_DROPDOWN = 100;
768
+ /**
769
+ * Max number of filter value buffers that deck.gl provides
770
+ */
771
+ export declare const MAX_GPU_FILTERS = 4;
772
+ export declare const MAP_THUMBNAIL_DIMENSION: {
773
+ width: number;
774
+ height: number;
775
+ };
776
+ export declare const MAP_INFO_CHARACTER: {
777
+ title: number;
778
+ description: number;
779
+ };
780
+ export declare const LOADING_METHODS: {
781
+ upload: "upload";
782
+ storage: "storage";
783
+ tileset: "tileset";
784
+ };
785
+ export declare const DEFAULT_FEATURE_FLAGS: {};
786
+ export declare const DATASET_FORMATS: {
787
+ row: "row";
788
+ geojson: "geojson";
789
+ csv: "csv";
790
+ keplergl: "keplergl";
791
+ arrow: "arrow";
792
+ };
793
+ export declare const MAP_CONTROLS: {
794
+ visibleLayers: "visibleLayers";
795
+ mapLegend: "mapLegend";
796
+ toggle3d: "toggle3d";
797
+ splitMap: "splitMap";
798
+ mapDraw: "mapDraw";
799
+ mapLocale: "mapLocale";
800
+ effect: "effect";
801
+ aiAssistant: "aiAssistant";
802
+ };
803
+ /**
804
+ * A multiplier for screen-space width/scale for Arc, Line, Icon and Text layers.
805
+ * Required in order to maintain the same appearance after upgrading to deck.gl v8.5.
806
+ * https://github.com/visgl/deck.gl/blob/master/docs/upgrade-guide.md
807
+ */
808
+ export declare const PROJECTED_PIXEL_SIZE_MULTIPLIER: number;
809
+ /**
810
+ * Maximum value for text outline width
811
+ */
812
+ export declare const TEXT_OUTLINE_MULTIPLIER = 5;
813
+ export declare const dataTestIds: Record<string, string>;
814
+ export declare const DEFAULT_TIMEZONE = "UTC";
815
+ export declare const DEFAULT_POST_PROCESSING_EFFECT_TYPE = "ink";
816
+ export declare const DEFAULT_LIGHT_COLOR: [number, number, number];
817
+ export declare const DEFAULT_LIGHT_INTENSITY = 1;
818
+ export declare const DEFAULT_SHADOW_INTENSITY = 0.5;
819
+ export declare const DEFAULT_SHADOW_COLOR: [number, number, number];
820
+ export declare const LIGHT_AND_SHADOW_EFFECT_TIME_MODES: {
821
+ pick: "pick";
822
+ current: "current";
823
+ animation: "animation";
824
+ };
825
+ export declare type LightAndShadowEffectTimeMode = 'pick' | 'current' | 'animation';
826
+ export declare const DEFAULT_LIGHT_AND_SHADOW_PROPS: {
827
+ timestamp: number;
828
+ timeMode: LightAndShadowEffectTimeMode;
829
+ shadowIntensity: number;
830
+ shadowColor: [number, number, number];
831
+ sunLightColor: [number, number, number];
832
+ sunLightIntensity: number;
833
+ ambientLightColor: [number, number, number];
834
+ ambientLightIntensity: number;
835
+ };
836
+ export declare const LIGHT_AND_SHADOW_EFFECT: EffectDescription;
837
+ export declare const POSTPROCESSING_EFFECTS: {
838
+ [key: string]: EffectDescription;
839
+ };
840
+ export declare const EFFECT_DESCRIPTIONS: EffectDescription[];
841
+ export declare type EffectType = 'ink' | 'brightnessContrast' | 'hueSaturation' | 'vibrance' | 'sepia' | 'dotScreen' | 'colorHalftone' | 'noise' | 'triangleBlur' | 'zoomBlur' | 'tiltShift' | 'edgeWork' | 'vignette' | 'magnify' | 'hexagonalPixelate' | 'lightAndShadow';
842
+ export declare const SYNC_TIMELINE_MODES: Record<string, SyncTimelineMode>;