@kepler.gl/constants 3.3.0-alpha.2 → 3.3.0-alpha.21

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 (76) hide show
  1. package/dist/annotation.d.ts +23 -1
  2. package/dist/cjs/annotation.js +89 -0
  3. package/dist/cjs/annotation.js.map +1 -0
  4. package/dist/cjs/color-palettes.js +461 -0
  5. package/dist/cjs/color-palettes.js.map +1 -0
  6. package/dist/cjs/colors-by-theme.js +519 -0
  7. package/dist/cjs/colors-by-theme.js.map +1 -0
  8. package/dist/cjs/dataset.js +209 -0
  9. package/dist/cjs/dataset.js.map +1 -0
  10. package/dist/cjs/default-settings.js +1813 -0
  11. package/dist/cjs/default-settings.js.map +1 -0
  12. package/dist/cjs/gpu-parameters.js +125 -0
  13. package/dist/cjs/gpu-parameters.js.map +1 -0
  14. package/dist/cjs/index.js +149 -0
  15. package/dist/cjs/index.js.map +1 -0
  16. package/dist/cjs/keyevent.js +26 -0
  17. package/dist/cjs/keyevent.js.map +1 -0
  18. package/dist/cjs/layers.js +671 -0
  19. package/dist/cjs/layers.js.map +1 -0
  20. package/dist/cjs/plot.js +16 -0
  21. package/dist/cjs/plot.js.map +1 -0
  22. package/dist/cjs/time.js +194 -0
  23. package/dist/cjs/time.js.map +1 -0
  24. package/dist/cjs/tooltip.js +221 -0
  25. package/dist/cjs/tooltip.js.map +1 -0
  26. package/dist/cjs/user-feedbacks.js +15 -0
  27. package/dist/cjs/user-feedbacks.js.map +1 -0
  28. package/dist/cjs/user-guides.js +19 -0
  29. package/dist/cjs/user-guides.js.map +1 -0
  30. package/dist/dataset.d.ts +161 -5
  31. package/dist/default-settings.d.ts +139 -14
  32. package/dist/esm/annotation.js +79 -0
  33. package/dist/esm/annotation.js.map +1 -0
  34. package/dist/esm/color-palettes.js +453 -0
  35. package/dist/esm/color-palettes.js.map +1 -0
  36. package/dist/esm/colors-by-theme.js +513 -0
  37. package/dist/esm/colors-by-theme.js.map +1 -0
  38. package/dist/esm/dataset.js +204 -0
  39. package/dist/esm/dataset.js.map +1 -0
  40. package/dist/esm/default-settings.js +1807 -0
  41. package/dist/esm/default-settings.js.map +1 -0
  42. package/dist/esm/gpu-parameters.js +119 -0
  43. package/dist/esm/gpu-parameters.js.map +1 -0
  44. package/dist/esm/index.js +18 -0
  45. package/dist/esm/index.js.map +1 -0
  46. package/dist/esm/keyevent.js +19 -0
  47. package/dist/esm/keyevent.js.map +1 -0
  48. package/dist/esm/layers.js +664 -0
  49. package/dist/esm/layers.js.map +1 -0
  50. package/dist/esm/plot.js +9 -0
  51. package/dist/esm/plot.js.map +1 -0
  52. package/dist/esm/time.js +190 -0
  53. package/dist/esm/time.js.map +1 -0
  54. package/dist/esm/tooltip.js +215 -0
  55. package/dist/esm/tooltip.js.map +1 -0
  56. package/dist/esm/user-feedbacks.js +9 -0
  57. package/dist/esm/user-feedbacks.js.map +1 -0
  58. package/dist/esm/user-guides.js +13 -0
  59. package/dist/esm/user-guides.js.map +1 -0
  60. package/dist/layers.d.ts +9 -0
  61. package/package.json +21 -14
  62. package/dist/annotation.js +0 -45
  63. package/dist/color-palettes.js +0 -462
  64. package/dist/colors-by-theme.js +0 -519
  65. package/dist/dataset.js +0 -82
  66. package/dist/default-settings.js +0 -1651
  67. package/dist/gpu-parameters.js +0 -125
  68. package/dist/index.js +0 -149
  69. package/dist/keyevent.js +0 -26
  70. package/dist/layers.js +0 -605
  71. package/dist/plot.js +0 -16
  72. package/dist/time.js +0 -194
  73. package/dist/tooltip.js +0 -221
  74. package/dist/user-feedbacks.js +0 -15
  75. package/dist/user-guides.js +0 -19
  76. package/umd/keplergl.min.js +0 -58
@@ -0,0 +1,664 @@
1
+ // SPDX-License-Identifier: MIT
2
+ // Copyright contributors to the kepler.gl project
3
+
4
+ import keyMirror from 'keymirror';
5
+ import { AGGREGATION_TYPES, DEFAULT_LAYER_COLOR_PALETTE, DEFAULT_LAYER_COLOR_PALETTE_STEPS } from './default-settings';
6
+ import { KEPLER_COLOR_PALETTES, colorPaletteToColorRange } from './color-palettes';
7
+ export var PROPERTY_GROUPS = keyMirror({
8
+ color: null,
9
+ stroke: null,
10
+ radius: null,
11
+ height: null,
12
+ angle: null,
13
+ scenegraph: null,
14
+ // for heatmap aggregation
15
+ cell: null,
16
+ precision: null,
17
+ display: null,
18
+ interaction: null
19
+ });
20
+ export var DEFAULT_LAYER_OPACITY = 0.8;
21
+ /** Minimum grid / hexagon cell size in kilometers. Zero is invalid for aggregation. */
22
+ export var MIN_WORLD_UNIT_SIZE = 0.001;
23
+ export var DEFAULT_HIGHLIGHT_COLOR = [252, 242, 26, 255];
24
+ export var DEFAULT_LAYER_LABEL = 'new layer';
25
+ export var DEFAULT_TEXT_LABEL = {
26
+ field: null,
27
+ color: [255, 255, 255],
28
+ size: 18,
29
+ weight: 400,
30
+ offset: [0, 0],
31
+ anchor: 'start',
32
+ alignment: 'center',
33
+ outlineWidth: 0,
34
+ outlineColor: [255, 0, 0, 255],
35
+ background: false,
36
+ backgroundColor: [0, 0, 200, 255],
37
+ collisionEnabled: false
38
+ };
39
+ var DEFAULT_COLOR_PALETTE = KEPLER_COLOR_PALETTES.find(function (_ref) {
40
+ var name = _ref.name;
41
+ return name === DEFAULT_LAYER_COLOR_PALETTE;
42
+ });
43
+ export var DEFAULT_COLOR_RANGE = colorPaletteToColorRange(DEFAULT_COLOR_PALETTE, {
44
+ reversed: false,
45
+ steps: DEFAULT_LAYER_COLOR_PALETTE_STEPS
46
+ });
47
+ export var DEFAULT_CUSTOM_PALETTE = {
48
+ name: 'color.customPalette',
49
+ type: 'custom',
50
+ category: 'Custom',
51
+ colors: []
52
+ };
53
+ export var UNKNOWN_COLOR_KEY = '__unknownColor__';
54
+ export var DEFAULT_COLOR_UI = {
55
+ // customPalette in edit
56
+ customPalette: DEFAULT_CUSTOM_PALETTE,
57
+ // show color sketcher modal
58
+ showSketcher: false,
59
+ // show color range selection panel
60
+ showDropdown: false,
61
+ // show color chart
62
+ showColorChart: false,
63
+ // color range selector config
64
+ colorRangeConfig: {
65
+ type: 'all',
66
+ steps: 6,
67
+ reversed: false,
68
+ colorBlindSafe: false,
69
+ custom: false,
70
+ customBreaks: false
71
+ }
72
+ };
73
+ export var LAYER_VIS_CONFIGS = {
74
+ thickness: {
75
+ type: 'number',
76
+ defaultValue: 2,
77
+ label: 'layerVisConfigs.strokeWidth',
78
+ isRanged: false,
79
+ range: [0, 100],
80
+ step: 0.01,
81
+ // 0–1 is the useful range for thin strokes; give it the first 20% of the track.
82
+ focusRange: [0, 1],
83
+ focusWeight: 0.2,
84
+ group: PROPERTY_GROUPS.stroke,
85
+ property: 'thickness',
86
+ allowCustomValue: true
87
+ },
88
+ strokeWidthRange: {
89
+ type: 'number',
90
+ defaultValue: [0, 10],
91
+ label: 'layerVisConfigs.strokeWidthRange',
92
+ isRanged: true,
93
+ range: [0, 200],
94
+ step: 0.1,
95
+ group: PROPERTY_GROUPS.stroke,
96
+ property: 'sizeRange',
97
+ allowCustomValue: true
98
+ },
99
+ trailLength: {
100
+ type: 'number',
101
+ defaultValue: 180,
102
+ label: 'layerVisConfigs.strokeWidth',
103
+ isRanged: false,
104
+ range: [1, 1000],
105
+ step: 1,
106
+ group: PROPERTY_GROUPS.stroke,
107
+ property: 'trailLength',
108
+ allowCustomValue: true
109
+ },
110
+ fadeTrail: {
111
+ defaultValue: true,
112
+ type: 'boolean',
113
+ label: 'layerVisConfigs.fadeTrail',
114
+ group: PROPERTY_GROUPS.stroke,
115
+ property: 'fadeTrail'
116
+ },
117
+ billboard: {
118
+ defaultValue: false,
119
+ type: 'boolean',
120
+ label: 'layerVisConfigs.billboard',
121
+ description: 'layerVisConfigs.billboardDescription',
122
+ group: PROPERTY_GROUPS.display,
123
+ property: 'billboard'
124
+ },
125
+ // radius is actually radiusScale in deck.gl
126
+ radius: {
127
+ type: 'number',
128
+ defaultValue: 10,
129
+ label: 'layerVisConfigs.radius',
130
+ isRanged: false,
131
+ range: [0, 100],
132
+ step: 0.1,
133
+ group: PROPERTY_GROUPS.radius,
134
+ property: 'radius',
135
+ allowCustomValue: true
136
+ },
137
+ fixedRadius: {
138
+ defaultValue: false,
139
+ type: 'boolean',
140
+ label: 'layerVisConfigs.fixedRadius',
141
+ description: 'layerVisConfigs.fixedRadiusDescription',
142
+ group: PROPERTY_GROUPS.radius,
143
+ property: 'fixedRadius'
144
+ },
145
+ fixedHeight: {
146
+ defaultValue: false,
147
+ type: 'boolean',
148
+ label: 'layerVisConfigs.fixedHeight',
149
+ description: 'layerVisConfigs.fixedHeightDescription',
150
+ group: PROPERTY_GROUPS.height,
151
+ property: 'fixedHeight'
152
+ },
153
+ invertHeight: {
154
+ defaultValue: false,
155
+ type: 'boolean',
156
+ label: 'layerVisConfigs.invertHeight',
157
+ description: 'layerVisConfigs.invertHeightDescription',
158
+ group: PROPERTY_GROUPS.height,
159
+ property: 'invertHeight'
160
+ },
161
+ fixedElevation: {
162
+ defaultValue: true,
163
+ type: 'boolean',
164
+ label: 'layerVisConfigs.fixedElevation',
165
+ description: 'layerVisConfigs.fixedElevationDescription',
166
+ group: PROPERTY_GROUPS.height,
167
+ property: 'fixedElevation'
168
+ },
169
+ radiusRange: {
170
+ type: 'number',
171
+ defaultValue: [0, 50],
172
+ isRanged: true,
173
+ range: [0, 500],
174
+ step: 0.1,
175
+ label: 'layerVisConfigs.radiusRange',
176
+ group: PROPERTY_GROUPS.radius,
177
+ property: 'radiusRange',
178
+ allowCustomValue: true
179
+ },
180
+ clusterRadius: {
181
+ type: 'number',
182
+ label: 'layerVisConfigs.clusterRadius',
183
+ defaultValue: 40,
184
+ isRanged: false,
185
+ range: [1, 500],
186
+ step: 0.1,
187
+ group: PROPERTY_GROUPS.radius,
188
+ property: 'clusterRadius',
189
+ allowCustomValue: true
190
+ },
191
+ clusterRadiusRange: {
192
+ type: 'number',
193
+ label: 'layerVisConfigs.radiusRangePixels',
194
+ defaultValue: [1, 40],
195
+ isRanged: true,
196
+ range: [1, 150],
197
+ step: 0.1,
198
+ group: PROPERTY_GROUPS.radius,
199
+ property: 'radiusRange',
200
+ allowCustomValue: true
201
+ },
202
+ minClusterSize: {
203
+ type: 'number',
204
+ label: 'layerVisConfigs.minClusterSize',
205
+ description: 'layerVisConfigs.minClusterSizeDescription',
206
+ defaultValue: 1,
207
+ isRanged: false,
208
+ range: [1, 100],
209
+ step: 1,
210
+ group: PROPERTY_GROUPS.radius,
211
+ property: 'minClusterSize',
212
+ allowCustomValue: false
213
+ },
214
+ opacity: {
215
+ type: 'number',
216
+ defaultValue: DEFAULT_LAYER_OPACITY,
217
+ label: 'layerVisConfigs.opacity',
218
+ isRanged: false,
219
+ range: [0, 1],
220
+ step: 0.01,
221
+ group: PROPERTY_GROUPS.color,
222
+ property: 'opacity',
223
+ allowCustomValue: false
224
+ },
225
+ coverage: {
226
+ type: 'number',
227
+ defaultValue: 1,
228
+ label: 'layerVisConfigs.coverage',
229
+ isRanged: false,
230
+ range: [0, 1],
231
+ step: 0.01,
232
+ group: PROPERTY_GROUPS.cell,
233
+ property: 'coverage',
234
+ allowCustomValue: false
235
+ },
236
+ // used in point layer
237
+ outline: {
238
+ type: 'boolean',
239
+ defaultValue: false,
240
+ label: 'layer.outline',
241
+ group: PROPERTY_GROUPS.display,
242
+ property: 'outline'
243
+ },
244
+ colorRange: {
245
+ type: 'color-range-select',
246
+ defaultValue: DEFAULT_COLOR_RANGE,
247
+ label: 'layerVisConfigs.colorRange',
248
+ group: PROPERTY_GROUPS.color,
249
+ property: 'colorRange'
250
+ },
251
+ strokeColorRange: {
252
+ type: 'color-range-select',
253
+ defaultValue: DEFAULT_COLOR_RANGE,
254
+ label: 'layerVisConfigs.strokeColorRange',
255
+ group: PROPERTY_GROUPS.color,
256
+ property: 'strokeColorRange'
257
+ },
258
+ targetColor: {
259
+ type: 'color-select',
260
+ label: 'layerVisConfigs.targetColor',
261
+ defaultValue: null,
262
+ group: PROPERTY_GROUPS.color,
263
+ property: 'targetColor'
264
+ },
265
+ strokeColor: {
266
+ type: 'color-select',
267
+ label: 'layerVisConfigs.strokeColor',
268
+ defaultValue: null,
269
+ group: PROPERTY_GROUPS.color,
270
+ property: 'strokeColor'
271
+ },
272
+ colorAggregation: {
273
+ type: 'select',
274
+ defaultValue: AGGREGATION_TYPES.average,
275
+ label: 'layerVisConfigs.colorAggregation',
276
+ // aggregation options are based on color field types
277
+ options: Object.keys(AGGREGATION_TYPES),
278
+ group: PROPERTY_GROUPS.color,
279
+ property: 'colorAggregation',
280
+ condition: function condition(config) {
281
+ return Boolean(config.colorField);
282
+ }
283
+ },
284
+ sizeAggregation: {
285
+ type: 'select',
286
+ defaultValue: AGGREGATION_TYPES.average,
287
+ label: 'layerVisConfigs.heightAggregation',
288
+ // aggregation options are based on color field types
289
+ options: Object.keys(AGGREGATION_TYPES),
290
+ group: PROPERTY_GROUPS.height,
291
+ property: 'sizeAggregation',
292
+ condition: function condition(config) {
293
+ return Boolean(config.sizeField);
294
+ }
295
+ },
296
+ percentile: {
297
+ type: 'number',
298
+ defaultValue: [0, 100],
299
+ label: function label(config) {
300
+ return "Filter by ".concat(config.colorField ? "".concat(config.visConfig.colorAggregation, " ").concat(config.colorField.name) : 'count', " percentile");
301
+ },
302
+ isRanged: true,
303
+ range: [0, 100],
304
+ step: 0.01,
305
+ group: PROPERTY_GROUPS.color,
306
+ property: 'percentile',
307
+ // percentile filter only makes sense with linear aggregation
308
+ condition: function condition(config) {
309
+ return config.colorScale !== 'ordinal';
310
+ },
311
+ allowCustomValue: false
312
+ },
313
+ elevationPercentile: {
314
+ type: 'number',
315
+ defaultValue: [0, 100],
316
+ label: function label(config) {
317
+ return "Filter by ".concat(config.sizeField ? "".concat(config.visConfig.sizeAggregation, " ").concat(config.sizeField.name) : 'count', " percentile");
318
+ },
319
+ isRanged: true,
320
+ range: [0, 100],
321
+ step: 0.01,
322
+ group: PROPERTY_GROUPS.height,
323
+ property: 'elevationPercentile',
324
+ // percentile filter only makes sense with linear aggregation
325
+ condition: function condition(config) {
326
+ return Boolean(config.visConfig.enable3d && (config.colorField || config.sizeField));
327
+ },
328
+ allowCustomValue: false
329
+ },
330
+ resolution: {
331
+ type: 'number',
332
+ defaultValue: 8,
333
+ label: 'layerVisConfigs.resolution',
334
+ isRanged: false,
335
+ range: [0, 13],
336
+ step: 1,
337
+ group: PROPERTY_GROUPS.cell,
338
+ property: 'resolution',
339
+ allowCustomValue: true
340
+ },
341
+ sizeScale: {
342
+ type: 'number',
343
+ defaultValue: 10,
344
+ label: 'layerVisConfigs.sizeScale',
345
+ isRanged: false,
346
+ range: [1, 1000],
347
+ step: 1,
348
+ group: PROPERTY_GROUPS.stroke,
349
+ property: 'sizeScale',
350
+ allowCustomValue: true
351
+ },
352
+ angle: {
353
+ type: 'number',
354
+ label: 'layerVisConfigs.angle',
355
+ defaultValue: 0,
356
+ isRanged: false,
357
+ range: [0, 360],
358
+ group: PROPERTY_GROUPS.angle,
359
+ step: 1,
360
+ property: 'angle',
361
+ allowCustomValue: true
362
+ },
363
+ worldUnitSize: {
364
+ type: 'number',
365
+ defaultValue: 1,
366
+ label: 'layerVisConfigs.worldUnitSize',
367
+ isRanged: false,
368
+ range: [MIN_WORLD_UNIT_SIZE, 500],
369
+ step: 0.0001,
370
+ group: PROPERTY_GROUPS.cell,
371
+ property: 'worldUnitSize',
372
+ allowCustomValue: true
373
+ },
374
+ elevationScale: {
375
+ type: 'number',
376
+ defaultValue: 5,
377
+ label: 'layerVisConfigs.elevationScale',
378
+ isRanged: false,
379
+ range: [0, 1000],
380
+ step: 0.1,
381
+ group: PROPERTY_GROUPS.height,
382
+ property: 'elevationScale',
383
+ allowCustomValue: true
384
+ },
385
+ elevationOffset: {
386
+ type: 'number',
387
+ defaultValue: 0,
388
+ label: 'layerVisConfigs.elevationOffset',
389
+ description: 'layerVisConfigs.elevationOffsetDescription',
390
+ isRanged: false,
391
+ range: [0, 10000],
392
+ step: 0.01,
393
+ focusRange: [0, 500],
394
+ focusWeight: 0.3,
395
+ group: PROPERTY_GROUPS.height,
396
+ property: 'elevationOffset',
397
+ allowCustomValue: true
398
+ },
399
+ elevationOffsetRange: {
400
+ type: 'number',
401
+ defaultValue: [0, 500],
402
+ label: 'layerVisConfigs.elevationOffsetRange',
403
+ isRanged: true,
404
+ range: [0, 10000],
405
+ step: 0.1,
406
+ group: PROPERTY_GROUPS.height,
407
+ property: 'elevationOffsetRange',
408
+ allowCustomValue: true
409
+ },
410
+ enableElevationZoomFactor: {
411
+ type: 'boolean',
412
+ defaultValue: true,
413
+ label: 'layerVisConfigs.enableElevationZoomFactor',
414
+ group: PROPERTY_GROUPS.height,
415
+ property: 'enableElevationZoomFactor',
416
+ description: 'layerVisConfigs.enableElevationZoomFactorDescription'
417
+ },
418
+ elevationRange: {
419
+ type: 'number',
420
+ defaultValue: [0, 500],
421
+ label: 'layerVisConfigs.heightScale',
422
+ isRanged: true,
423
+ range: [0, 1000],
424
+ step: 0.01,
425
+ group: PROPERTY_GROUPS.height,
426
+ property: 'sizeRange',
427
+ allowCustomValue: true
428
+ },
429
+ heightRange: {
430
+ type: 'number',
431
+ defaultValue: [0, 500],
432
+ label: 'Height Scale',
433
+ isRanged: true,
434
+ range: [0, 1000],
435
+ step: 0.01,
436
+ group: PROPERTY_GROUPS.height,
437
+ property: 'heightRange',
438
+ allowCustomValue: true
439
+ },
440
+ coverageRange: {
441
+ type: 'number',
442
+ defaultValue: [0, 1],
443
+ label: 'layerVisConfigs.coverageRange',
444
+ isRanged: true,
445
+ range: [0, 1],
446
+ step: 0.01,
447
+ group: PROPERTY_GROUPS.radius,
448
+ property: 'coverageRange',
449
+ allowCustomValue: false
450
+ },
451
+ // hi precision is deprecated by deck.gl
452
+ 'hi-precision': {
453
+ type: 'boolean',
454
+ defaultValue: false,
455
+ label: 'layerVisConfigs.highPrecisionRendering',
456
+ group: PROPERTY_GROUPS.precision,
457
+ property: 'hi-precision',
458
+ description: 'layerVisConfigs.highPrecisionRenderingDescription'
459
+ },
460
+ enable3d: {
461
+ type: 'boolean',
462
+ defaultValue: false,
463
+ label: 'layerVisConfigs.height',
464
+ group: PROPERTY_GROUPS.height,
465
+ property: 'enable3d',
466
+ description: 'layerVisConfigs.heightDescription'
467
+ },
468
+ stroked: {
469
+ type: 'boolean',
470
+ label: 'layerVisConfigs.stroke',
471
+ defaultValue: true,
472
+ group: PROPERTY_GROUPS.display,
473
+ property: 'stroked'
474
+ },
475
+ filled: {
476
+ type: 'boolean',
477
+ label: 'layerVisConfigs.fill',
478
+ defaultValue: false,
479
+ group: PROPERTY_GROUPS.display,
480
+ property: 'filled'
481
+ },
482
+ extruded: {
483
+ type: 'boolean',
484
+ defaultValue: false,
485
+ label: 'layerVisConfigs.enablePolygonHeight',
486
+ group: PROPERTY_GROUPS.display,
487
+ property: 'extruded'
488
+ },
489
+ wireframe: {
490
+ type: 'boolean',
491
+ defaultValue: false,
492
+ label: 'layerVisConfigs.showWireframe',
493
+ group: PROPERTY_GROUPS.display,
494
+ property: 'wireframe'
495
+ },
496
+ // used for heatmap
497
+ weight: {
498
+ type: 'number',
499
+ defaultValue: 1,
500
+ label: 'layerVisConfigs.weightIntensity',
501
+ isRanged: false,
502
+ range: [0.01, 500],
503
+ step: 0.01,
504
+ group: PROPERTY_GROUPS.cell,
505
+ property: 'weight',
506
+ condition: function condition(config) {
507
+ return Boolean(config.weightField);
508
+ },
509
+ allowCustomValue: true
510
+ },
511
+ heatmapRadius: {
512
+ type: 'number',
513
+ defaultValue: 20,
514
+ label: 'layerVisConfigs.radius',
515
+ isRanged: false,
516
+ range: [0.1, 100],
517
+ step: 0.1,
518
+ group: PROPERTY_GROUPS.cell,
519
+ property: 'radius',
520
+ allowCustomValue: true
521
+ },
522
+ darkBaseMapEnabled: {
523
+ type: 'boolean',
524
+ defaultValue: true,
525
+ label: 'layerVisConfigs.darkModeEnabled',
526
+ property: 'darkBaseMapEnabled',
527
+ group: PROPERTY_GROUPS.display
528
+ },
529
+ allowHover: {
530
+ type: 'boolean',
531
+ defaultValue: true,
532
+ label: 'layerVisConfigs.allowHover',
533
+ description: 'layerVisConfigs.allowHoverDescription',
534
+ group: PROPERTY_GROUPS.interaction,
535
+ property: 'allowHover'
536
+ },
537
+ showNeighborOnHover: {
538
+ type: 'boolean',
539
+ defaultValue: false,
540
+ label: 'layerVisConfigs.showNeighborOnHover',
541
+ group: PROPERTY_GROUPS.interaction,
542
+ property: 'showNeighborOnHover'
543
+ },
544
+ showHighlightColor: {
545
+ type: 'boolean',
546
+ defaultValue: true,
547
+ label: 'layerVisConfigs.showHighlightColor',
548
+ group: PROPERTY_GROUPS.interaction,
549
+ property: 'showHighlightColor'
550
+ },
551
+ scenegraph: {
552
+ defaultValue: null,
553
+ type: 'input',
554
+ label: 'layerVisConfigs.scenegraph',
555
+ group: PROPERTY_GROUPS.scenegraph,
556
+ property: 'scenegraph'
557
+ },
558
+ scenegraphEnabled: {
559
+ defaultValue: false,
560
+ type: 'boolean',
561
+ label: 'layerVisConfigs.scenegraphEnabled',
562
+ group: PROPERTY_GROUPS.scenegraph,
563
+ property: 'scenegraphEnabled'
564
+ },
565
+ scenegraphCustomModelUrl: {
566
+ defaultValue: '',
567
+ type: 'input',
568
+ label: 'layerVisConfigs.scenegraphCustomModelUrl',
569
+ group: PROPERTY_GROUPS.scenegraph,
570
+ property: 'scenegraphCustomModelUrl'
571
+ },
572
+ scenegraphColorEnabled: {
573
+ defaultValue: false,
574
+ type: 'boolean',
575
+ label: 'layerVisConfigs.scenegraphColorEnabled',
576
+ group: PROPERTY_GROUPS.scenegraph,
577
+ property: 'scenegraphColorEnabled'
578
+ },
579
+ scenegraphUseTrailColor: {
580
+ defaultValue: false,
581
+ type: 'boolean',
582
+ label: 'layerVisConfigs.scenegraphUseTrailColor',
583
+ group: PROPERTY_GROUPS.scenegraph,
584
+ property: 'scenegraphUseTrailColor'
585
+ },
586
+ scenegraphColor: {
587
+ defaultValue: null,
588
+ type: 'color-select',
589
+ label: 'layerVisConfigs.scenegraphColor',
590
+ group: PROPERTY_GROUPS.scenegraph,
591
+ property: 'scenegraphColor'
592
+ }
593
+ };
594
+ export var LAYER_TEXT_CONFIGS = {
595
+ fontSize: {
596
+ type: 'number',
597
+ range: [1, 100],
598
+ value0: 1,
599
+ step: 1,
600
+ isRanged: false,
601
+ label: 'Font size',
602
+ showInput: true
603
+ },
604
+ fontWeight: {
605
+ type: 'number',
606
+ range: [100, 900],
607
+ value0: 100,
608
+ step: 100,
609
+ isRanged: false,
610
+ label: 'Font weight',
611
+ showInput: true
612
+ },
613
+ outlineWidth: {
614
+ type: 'number',
615
+ range: [0, 1],
616
+ value0: 0,
617
+ step: 0.01,
618
+ isRanged: false,
619
+ label: 'Outline width',
620
+ showInput: true
621
+ },
622
+ textAnchor: {
623
+ type: 'select',
624
+ options: ['start', 'middle', 'end'],
625
+ multiSelect: false,
626
+ searchable: false
627
+ },
628
+ textAlignment: {
629
+ type: 'select',
630
+ options: ['top', 'center', 'bottom'],
631
+ multiSelect: false,
632
+ searchable: false
633
+ }
634
+ };
635
+ export var LAYER_TYPES = keyMirror({
636
+ point: null,
637
+ arc: null,
638
+ line: null,
639
+ grid: null,
640
+ hexagon: null,
641
+ geojson: null,
642
+ cluster: null,
643
+ donut: null,
644
+ icon: null,
645
+ heatmap: null,
646
+ contour: null,
647
+ voronoi: null,
648
+ hexagonId: null,
649
+ '3D': null,
650
+ trip: null,
651
+ s2: null,
652
+ a5: null,
653
+ geohash: null,
654
+ flow: null,
655
+ flowField: null,
656
+ vectorTile: null,
657
+ rasterTile: null,
658
+ wms: null,
659
+ tile3d: null,
660
+ bitmap: null,
661
+ zarr: null
662
+ });
663
+ export var EDITOR_AVAILABLE_LAYERS = [LAYER_TYPES.point, LAYER_TYPES.icon, LAYER_TYPES.grid, LAYER_TYPES.hexagon, LAYER_TYPES.cluster, LAYER_TYPES.donut, LAYER_TYPES.arc, LAYER_TYPES.line, LAYER_TYPES.hexagonId, LAYER_TYPES.geojson, LAYER_TYPES.heatmap, LAYER_TYPES.contour, LAYER_TYPES.voronoi];
664
+ //# sourceMappingURL=layers.js.map