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