@carto/kepler.gl 0.0.80 → 0.0.81-alpha.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.
@@ -0,0 +1,269 @@
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+
21
+ import TimeRangeSliderFactory from './common/time-range-slider';
22
+ import RangeSliderFactory from './common/range-slider';
23
+ import VisConfigSliderFactory from './side-panel/layer-panel/vis-config-slider';
24
+ import VisConfigSwitchFactory from './side-panel/layer-panel/vis-config-switch';
25
+ import LayerConfigGroupFactory from './side-panel/layer-panel/layer-config-group';
26
+ import {
27
+ LayerColorRangeSelectorFactory,
28
+ LayerColorSelectorFactory,
29
+ ArcLayerColorSelectorFactory,
30
+ ChannelByValueSelectorFactory
31
+ } from './side-panel/layer-panel/layer-configurator';
32
+ import ColorDimensionScaleSelectorFactory from './side-panel/layer-panel/color-dimension-scale-selector';
33
+ import FieldSelectorFactory, {FieldListItemFactoryFactory} from './common/field-selector';
34
+ import FieldTokenFactory from './common/field-token';
35
+ import PanelHeaderActionFactory from './side-panel/panel-header-action';
36
+ import InfoHelperFactory from 'components/common/info-helper';
37
+ import {appInjector} from './container';
38
+
39
+ // Components
40
+ export {default as KeplerGl, default, injectComponents, ContainerFactory} from './container';
41
+
42
+ // factories
43
+ export {default as KeplerGlFactory, DEFAULT_KEPLER_GL_PROPS} from './kepler-gl';
44
+ export {default as SidePanelFactory} from './side-panel';
45
+ export {default as PanelTitleFactory} from './side-panel/panel-title';
46
+ export {default as MapContainerFactory} from './map-container';
47
+ export {default as MapsLayoutFactory} from './maps-layout';
48
+ export {
49
+ default as BottomWidgetFactory,
50
+ LayerAnimationControllerFactory,
51
+ FilterAnimationControllerFactory
52
+ } from './bottom-widget';
53
+ export {default as ModalContainerFactory} from './modal-container';
54
+ export {default as PlotContainerFactory} from './plot-container';
55
+ export {default as GeocoderPanelFactory} from './geocoder-panel';
56
+
57
+ // // side panel factories
58
+ export {
59
+ default as PanelHeaderFactory,
60
+ SaveExportDropdownFactory,
61
+ PanelHeaderDropdownFactory
62
+ } from './side-panel/panel-header';
63
+ export {default as PanelHeaderActionFactory} from './side-panel/panel-header-action';
64
+ export {CollapseButtonFactory, default as SidebarFactory} from './side-panel/side-bar';
65
+ export {default as PanelToggleFactory} from './side-panel/panel-toggle';
66
+ export {default as PanelTabFactory} from './side-panel/panel-tab';
67
+
68
+ export {
69
+ default as LayerManagerFactory,
70
+ LayerBlendingSelectorFactory
71
+ } from './side-panel/layer-manager';
72
+ export {default as LayerPanelFactory} from './side-panel/layer-panel/layer-panel';
73
+ export {default as LayerPanelHeaderFactory} from './side-panel/layer-panel/layer-panel-header';
74
+ export {default as LayerConfiguratorFactory} from './side-panel/layer-panel/layer-configurator';
75
+ export {default as CustomMarkersConfigGroupFactory} from './side-panel/layer-panel/custom-markers-config-group';
76
+ export {default as TextLabelPanelFactory} from './side-panel/layer-panel/text-label-panel';
77
+ export {LayerConfigGroupLabelFactory} from './side-panel/layer-panel/layer-config-group';
78
+ export {
79
+ AddDataButtonFactory,
80
+ default as DatasetSectionFactory
81
+ } from './side-panel/layer-panel/dataset-section';
82
+ export {default as DatasetLayerSectionFactory} from './side-panel/layer-panel/dataset-layer-section';
83
+ export {default as DatasetLayerGroupFactory} from './side-panel/layer-panel/dataset-layer-group';
84
+ export {default as PanelViewListToggleFactory} from './side-panel/layer-panel/panel-view-list-toggle';
85
+ export {default as AddLayerButtonFactory} from './side-panel/layer-panel/add-layer-button';
86
+ export {default as LayerListFactory} from './side-panel/layer-panel/layer-list';
87
+ export {default as LayerVisibilityByZoomFactory} from './side-panel/layer-panel/layer-visibility-by-zoom';
88
+ export {default as LayerAggregationResolutionFactory} from './side-panel/layer-panel/layer-aggregation-resolution';
89
+
90
+ export {default as SourceDataCatalogFactory} from './side-panel/common/source-data-catalog';
91
+ export {default as SourceDataSelectorFactory} from './side-panel/common/source-data-selector';
92
+ export {default as DatasetTitleFactory} from './side-panel/common/dataset-title';
93
+ export {default as DatasetInfoFactory} from './side-panel/common/dataset-info';
94
+ export {default as DatasetTagFactory} from './side-panel/common/dataset-tag';
95
+
96
+ export {default as FilterManagerFactory} from './side-panel/filter-manager';
97
+ export {default as FilterPanelFactory} from './side-panel/filter-panel/filter-panel';
98
+
99
+ export {default as InteractionManagerFactory} from './side-panel/interaction-manager';
100
+ export {default as BrushConfigFactory} from './side-panel/interaction-panel/brush-config';
101
+ export {default as TooltipConfigFactory} from './side-panel/interaction-panel/tooltip-config';
102
+
103
+ export {default as MapManagerFactory} from './side-panel/map-manager';
104
+ export {default as LayerGroupSelectorFactory} from './side-panel/map-style-panel/map-layer-selector';
105
+ export {default as MapStyleSelectorFactory} from './side-panel/map-style-panel/map-style-selector';
106
+ export {default as CustomPanelsFactory} from './side-panel/custom-panel';
107
+ // // map factories
108
+ export {default as MapPopoverFactory} from './map/map-popover';
109
+ export {default as MapControlFactory} from './map/map-control';
110
+ export {default as LayerHoverInfoFactory} from './map/layer-hover-info';
111
+ export {default as CoordinateInfoFactory} from './map/coordinate-info';
112
+ export {default as LayerSelectorPanelFactory} from './map/layer-selector-panel';
113
+ export {default as LocalePanelFactory} from './map/locale-panel';
114
+ export {default as MapControlPanelFactory} from './map/map-control-panel';
115
+ export {default as MapControlTooltipFactory} from './map/map-control-tooltip';
116
+ export {
117
+ default as MapLegendFactory,
118
+ LayerLegendHeaderFactory,
119
+ LayerLegendContentFactory
120
+ } from './map/map-legend';
121
+ export {default as MapDrawPanelFactory} from './map/map-draw-panel';
122
+ export {default as SplitMapButtonFactory} from './map/split-map-button';
123
+ export {default as MapLegendPanelFactory} from './map/map-legend-panel';
124
+ export {default as Toggle3dButtonFactory} from './map/toggle-3d-button';
125
+ export {default as MapControlToolbarFactory} from './map/map-control-toolbar';
126
+
127
+ // // modal factories
128
+ export {default as ModalDialogFactory} from './modals/modal-dialog';
129
+ export {default as DeleteDatasetModalFactory} from './modals/delete-data-modal';
130
+ export {default as DataTableModalFactory} from './modals/data-table-modal';
131
+ export {default as LoadDataModalFactory} from './modals/load-data-modal';
132
+ export {default as ExportImageModalFactory} from './modals/export-image-modal';
133
+ export {default as ExportDataModalFactory} from './modals/export-data-modal';
134
+ export {default as AddMapStyleModalFactory} from './modals/add-map-style-modal';
135
+ export {default as ExportMapModalFactory} from './modals/export-map-modal/export-map-modal';
136
+ export {default as ModalTabsFactory} from './modals/modal-tabs';
137
+ export {default as LoadStorageMapFactory} from './modals/load-storage-map';
138
+ export {default as ExportJsonMapFactory} from './modals/export-map-modal/export-json-map';
139
+ export {default as ExportHtmlMapFactory} from './modals/export-map-modal/export-html-map';
140
+
141
+ // // notification panel
142
+ export {default as NotificationItemFactory} from './notification-panel/notification-item';
143
+
144
+ // // common factory
145
+ export {default as AnimationControlFactory} from './common/animation-control/animation-control';
146
+ export {default as AnimationControllerFactory} from './common/animation-control/animation-controller';
147
+ export {default as SpeedControlFactory} from './common/animation-control/speed-control';
148
+ export {default as PlaybackControlsFactory} from './common/animation-control/playback-controls';
149
+ export {default as FloatingTimeDisplayFactory} from './common/animation-control/floating-time-display';
150
+ export {default as AnimationSpeedSliderFactory} from './common/animation-control/animation-speed-slider';
151
+ export {default as RangePlotFactory} from './common/range-plot';
152
+ export {default as HistogramPlotFactory} from './common/histogram-plot';
153
+ export {default as LineChartFactory} from './common/line-chart';
154
+ export {default as RangeBrushFactory} from './common/range-brush';
155
+ export {default as TimeSliderMarkerFactory} from './common/time-slider-marker';
156
+ export {default as TimeRangeSliderTimeTitleFactory} from './common/time-range-slider-time-title';
157
+
158
+ // // Filters factory
159
+ export {default as TimeWidgetFactory, TimeWidgetTopFactory} from './filters/time-widget';
160
+ export {default as SingleSelectFilterFactory} from './filters/single-select-filter';
161
+ export {default as MultiSelectFilterFactory} from './filters/multi-select-filter';
162
+ export {
163
+ timeRangeSliderFieldsSelector,
164
+ default as TimeRangeFilterFactory
165
+ } from './filters/time-range-filter';
166
+ export {default as RangeFilterFactory} from './filters/range-filter';
167
+
168
+ // // Editor Factory
169
+ export {default as EditorFactory} from './editor/editor';
170
+ export {default as FeatureActionPanelFactory} from './editor/feature-action-panel';
171
+
172
+ // Injector
173
+ export {injector, provideRecipesToInjector, withState} from './injector';
174
+
175
+ // Common Components
176
+ export {default as CloudTile} from './modals/cloud-tile';
177
+ export {default as FileUploadFactory, FileUpload} from './common/file-uploader/file-upload';
178
+ export {default as FileDrop} from './common/file-uploader/file-drop';
179
+ export {default as UploadButton} from './common/file-uploader/upload-button';
180
+ export {default as DatasetLabel} from './common/dataset-label';
181
+ export {default as ItemSelector} from './common/item-selector/item-selector';
182
+ export {default as Typeahead} from './common/item-selector/typeahead';
183
+ export {default as DropdownList} from './common/item-selector/dropdown-list';
184
+ export {default as FieldSelectorFactory} from './common/field-selector';
185
+ export {default as Modal, ModalFooter, ModalTitle} from './common/modal';
186
+ export {default as AppLogo} from './common/logo';
187
+ export {default as Switch} from './common/switch';
188
+ export {default as Checkbox} from './common/checkbox';
189
+ export {default as LoadingSpinner} from './common/loading-spinner';
190
+ export {default as LoadingDialog} from './modals/loading-dialog';
191
+ export {default as FieldTokenFactory} from './common/field-token';
192
+ export {default as Portaled} from './common/portaled';
193
+ export {default as ProgressBar} from './common/progress-bar';
194
+ export {default as FileUploadProgress} from './common/file-uploader/file-upload-progress';
195
+ export {default as Slider} from './common/slider/slider';
196
+ export {DatasetSquare} from './common/styled-components';
197
+ export {default as ActionPanel, ActionPanelItem} from './common/action-panel';
198
+ export {default as DataTableFactory} from './common/data-table';
199
+ export {default as CanvasHack} from './common/data-table/canvas';
200
+ export {default as MapLayerSelector} from './common/map-layer-selector';
201
+ export {default as VerticalToolbar} from './common/vertical-toolbar';
202
+ export {default as ToolbarItem} from './common/toolbar-item';
203
+ export {SharingUrl} from './modals/share-map-modal';
204
+ export {default as TippyTooltip} from './common/tippy-tooltip';
205
+
206
+ // side pane components
207
+ export {default as LayerTypeSelectorFactory} from './side-panel/layer-panel/layer-type-selector';
208
+ export {default as LayerTypeDropdownListFactory} from './side-panel/layer-panel/layer-type-dropdown-list';
209
+ export {default as LayerTypeListItemFactory} from './side-panel/layer-panel/layer-type-list-item';
210
+ export {ConfigGroupCollapsibleContent} from './side-panel/layer-panel/layer-config-group';
211
+ export {default as ColumnSelectorFactory} from './side-panel/layer-panel/column-selector';
212
+ export {default as FilterPanelHeaderFactory} from './side-panel/filter-panel/filter-panel-header';
213
+ export {default as StyledDropdownSelect} from './common/item-selector/item-selector';
214
+ export {
215
+ LayerLabelEditor,
216
+ LayerTitleSectionFactory
217
+ } from './side-panel/layer-panel/layer-panel-header';
218
+
219
+ export {HowToButton, AggregationTypeSelector} from './side-panel/layer-panel/layer-configurator';
220
+
221
+ export {default as ColorPalette} from './side-panel/layer-panel/color-palette';
222
+
223
+ export * from './common/styled-components';
224
+ import * as Icons from './common/icons';
225
+
226
+ export {Icons};
227
+
228
+ // Individual Component from Dependency Tree
229
+ export const LayerColorSelector = appInjector.get(LayerColorSelectorFactory);
230
+ export const LayerColorRangeSelector = appInjector.get(LayerColorRangeSelectorFactory);
231
+ export const ArcLayerColorSelector = appInjector.get(ArcLayerColorSelectorFactory);
232
+ export const TimeRangeSlider = appInjector.get(TimeRangeSliderFactory);
233
+ export const RangeSlider = appInjector.get(RangeSliderFactory);
234
+ export const VisConfigSlider = appInjector.get(VisConfigSliderFactory);
235
+ export const VisConfigSwitch = appInjector.get(VisConfigSwitchFactory);
236
+ export const LayerConfigGroup = appInjector.get(LayerConfigGroupFactory);
237
+ export const ChannelByValueSelector = appInjector.get(ChannelByValueSelectorFactory);
238
+ export const ColorDimensionScaleSelector = appInjector.get(ColorDimensionScaleSelectorFactory);
239
+ export const FieldSelector = appInjector.get(FieldSelectorFactory);
240
+ export const FieldToken = appInjector.get(FieldTokenFactory);
241
+ export const PanelHeaderAction = appInjector.get(PanelHeaderActionFactory);
242
+ export const FieldListItemFactory = appInjector.get(FieldListItemFactoryFactory);
243
+ export const InfoHelper = appInjector.get(InfoHelperFactory);
244
+
245
+ export {
246
+ appInjector,
247
+ TimeRangeSliderFactory,
248
+ RangeSliderFactory,
249
+ VisConfigSliderFactory,
250
+ VisConfigSwitchFactory,
251
+ LayerConfigGroupFactory,
252
+ ChannelByValueSelectorFactory,
253
+ ColorDimensionScaleSelectorFactory,
254
+ FieldListItemFactoryFactory,
255
+ InfoHelperFactory,
256
+ LayerColorSelectorFactory,
257
+ LayerColorRangeSelectorFactory,
258
+ ArcLayerColorSelectorFactory
259
+ };
260
+
261
+ // Context
262
+ export {default as KeplerGlContext, RootContext} from 'components/context';
263
+
264
+ // CARTO ADDITIONS
265
+ import ColorRangeSelectorFactory, { ColorPaletteGroupFactory, PaletteConfigFactory } from './side-panel/layer-panel/color-range-selector';
266
+ import SingleColorPaletteFactory from './side-panel/layer-panel/single-color-palette';
267
+ import LayerColumnConfigFactory from './side-panel/layer-panel/layer-column-config';
268
+ export {ColorRangeSelectorFactory, ColorPaletteGroupFactory, SingleColorPaletteFactory, PaletteConfigFactory, LayerColumnConfigFactory};
269
+ export {HexColumnConfigFactory} from './side-panel/layer-panel/hex-column-config';
@@ -78,3 +78,7 @@ export {COLOR_RANGES, DEFAULT_COLOR_RANGE} from './color-ranges';
78
78
  export {default as KeyEvent} from './keyevent';
79
79
  export {LAYER_TYPES} from 'layers/types';
80
80
  export {PLOT_TYPES} from 'utils/filter-utils';
81
+
82
+ // CARTO ADDITIONS
83
+ export { TOOLTIP_FORMATS, TOOLTIP_FORMAT_TYPES } from './tooltip';
84
+ export {CHANNEL_SCALE_SUPPORTED_FIELDS, FIELD_TYPES_AGGREGATORS} from './default-settings';
@@ -0,0 +1,84 @@
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+
21
+ // Constants
22
+ export {
23
+ ADD_DATA_ID,
24
+ ADD_MAP_STYLE_ID,
25
+ AGGREGATION_TYPES,
26
+ ALL_FIELD_TYPES,
27
+ CHANNEL_SCALES,
28
+ DATA_TABLE_ID,
29
+ DATASET_FORMATS,
30
+ DEFAULT_LAYER_GROUPS,
31
+ DEFAULT_MAP_STYLES,
32
+ DEFAULT_NOTIFICATION_TOPICS,
33
+ DEFAULT_NOTIFICATION_TYPES,
34
+ DELETE_DATA_ID,
35
+ DIMENSIONS,
36
+ EDITOR_MODES,
37
+ EXPORT_DATA_ID,
38
+ EXPORT_DATA_TYPE_OPTIONS,
39
+ EXPORT_IMAGE_ID,
40
+ EXPORT_IMG_RATIO_OPTIONS,
41
+ EXPORT_IMG_RATIOS,
42
+ EXPORT_IMG_RESOLUTION_OPTIONS,
43
+ EXPORT_MAP_FORMAT_OPTIONS,
44
+ EXPORT_MAP_FORMATS,
45
+ EXPORT_MAP_ID,
46
+ FIELD_OPTS,
47
+ FILTER_TYPES,
48
+ GEOJSON_FIELDS,
49
+ ICON_FIELDS,
50
+ KEPLER_GL_NAME,
51
+ KEPLER_GL_VERSION,
52
+ KEPLER_GL_WEBSITE,
53
+ LAYER_BLENDINGS,
54
+ MAX_DEFAULT_TOOLTIPS,
55
+ PANELS,
56
+ SIDEBAR_PANELS,
57
+ SCALE_TYPES,
58
+ SCALE_FUNC,
59
+ THEME,
60
+ TRIP_ARC_FIELDS,
61
+ TRIP_POINT_FIELDS,
62
+ BASE_SPEED,
63
+ FPS,
64
+ ANIMATION_WINDOW,
65
+ DEFAULT_TIME_FORMAT,
66
+ SPEED_CONTROL_RANGE,
67
+ RESOLUTIONS,
68
+ SORT_ORDER,
69
+ MAP_CONTROLS,
70
+ UNKNOWN_COLOR,
71
+ FIELD_AGGREGATORS
72
+ } from './default-settings';
73
+
74
+ export {BUG_REPORT_LINK, USER_GUIDE_DOC} from './user-guides';
75
+
76
+ export {VizColorPalette, DataVizColors} from './custom-color-ranges';
77
+ export {COLOR_RANGES, DEFAULT_COLOR_RANGE} from './color-ranges';
78
+ export {default as KeyEvent} from './keyevent';
79
+ export {LAYER_TYPES} from 'layers/types';
80
+ export {PLOT_TYPES} from 'utils/filter-utils';
81
+
82
+ // CARTO ADDITIONS
83
+ export { TOOLTIP_FORMATS, TOOLTIP_FORMAT_TYPES } from './tooltip';
84
+ export {CHANNEL_SCALE_SUPPORTED_FIELDS, FIELD_TYPES_AGGREGATORS} from './default-settings';
@@ -70,3 +70,7 @@ export const LayerClasses = {
70
70
  };
71
71
 
72
72
  export {LAYER_VIS_CONFIGS} from './layer-factory';
73
+
74
+ // CARTO ADDITIONS
75
+ import IconInfoModalFactory from './icon-layer/icon-info-modal';
76
+ export {IconInfoModalFactory};
@@ -0,0 +1,81 @@
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+
21
+ import {default as PointLayer} from './point-layer/point-layer';
22
+ import {default as ArcLayer} from './arc-layer/arc-layer';
23
+ import {default as LineLayer} from './line-layer/line-layer';
24
+ import {default as GridLayer} from './grid-layer/grid-layer';
25
+ import {default as HexagonLayer} from './hexagon-layer/hexagon-layer';
26
+ import {default as GeojsonLayer} from './geojson-layer/geojson-layer';
27
+ import {default as ClusterLayer} from './cluster-layer/cluster-layer';
28
+ import {default as IconLayer} from './icon-layer/icon-layer';
29
+ import {default as HeatmapLayer} from './heatmap-layer/heatmap-layer';
30
+ import {default as H3Layer} from './h3-hexagon-layer/h3-hexagon-layer';
31
+ import {default as ScenegraphLayer} from './scenegraph-layer/scenegraph-layer';
32
+ import {default as TripLayer} from './trip-layer/trip-layer';
33
+ import {default as S2GeometryLayer} from './s2-geometry-layer/s2-geometry-layer';
34
+ import {LAYER_TYPES} from './types';
35
+ import IconInfoModalFactory from './icon-layer/icon-info-modal';
36
+
37
+ // base layer
38
+ export {default as Layer, OVERLAY_TYPE, LAYER_ID_LENGTH, colorMaker} from './base-layer';
39
+ export type {LayerBaseConfig, LayerColumns, LayerColumn, UpdateTrigger, UpdateTriggers} from './base-layer';
40
+
41
+ // individual layers
42
+ export const KeplerGlLayers = {
43
+ PointLayer,
44
+ ArcLayer,
45
+ LineLayer,
46
+ GridLayer,
47
+ HexagonLayer,
48
+ GeojsonLayer,
49
+ ClusterLayer,
50
+ IconLayer,
51
+ HeatmapLayer,
52
+ H3Layer,
53
+ ScenegraphLayer,
54
+ TripLayer,
55
+ S2GeometryLayer
56
+ };
57
+
58
+ export type LayerClassesType = typeof LayerClasses;
59
+ export const LayerClasses = {
60
+ [LAYER_TYPES.point]: PointLayer,
61
+ [LAYER_TYPES.arc]: ArcLayer,
62
+ [LAYER_TYPES.line]: LineLayer,
63
+ [LAYER_TYPES.grid]: GridLayer,
64
+ [LAYER_TYPES.hexagon]: HexagonLayer,
65
+ [LAYER_TYPES.geojson]: GeojsonLayer,
66
+ [LAYER_TYPES.cluster]: ClusterLayer,
67
+ [LAYER_TYPES.icon]: IconLayer,
68
+ [LAYER_TYPES.heatmap]: HeatmapLayer,
69
+ [LAYER_TYPES.hexagonId]: H3Layer,
70
+ [LAYER_TYPES['3D']]: ScenegraphLayer,
71
+ [LAYER_TYPES.trip]: TripLayer,
72
+ [LAYER_TYPES.s2]: S2GeometryLayer
73
+ };
74
+
75
+ export type OVERLAY_TYPE = {[key: string]: string};
76
+
77
+ export {LAYER_VIS_CONFIGS} from './layer-factory';
78
+ export type {LayerVisConfig} from './layer-factory';
79
+
80
+ // CARTO ADDITIONS
81
+ export {IconInfoModalFactory};
@@ -53,3 +53,7 @@ export {getHexFields} from '../layers/h3-hexagon-layer/h3-utils';
53
53
  export {containValidTime} from '../layers/trip-layer/trip-utils';
54
54
  export {default as KeplerTable, findPointFieldPairs} from './table-utils/kepler-table';
55
55
  export {createDataContainer, createIndexedDataContainer} from './table-utils/data-container-utils';
56
+
57
+ // CARTO ADDITIONS
58
+ export { generateHashId } from './utils';
59
+ export { getFormatter } from './data-utils';
@@ -0,0 +1,72 @@
1
+ // Copyright (c) 2022 Uber Technologies, Inc.
2
+ //
3
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ // of this software and associated documentation files (the "Software"), to deal
5
+ // in the Software without restriction, including without limitation the rights
6
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ // copies of the Software, and to permit persons to whom the Software is
8
+ // furnished to do so, subject to the following conditions:
9
+ //
10
+ // The above copyright notice and this permission notice shall be included in
11
+ // all copies or substantial portions of the Software.
12
+ //
13
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ // THE SOFTWARE.
20
+
21
+ // UTILS
22
+ export {
23
+ maybeToDate,
24
+ roundValToStep,
25
+ timeToUnixMilli,
26
+ defaultFormatter,
27
+ FIELD_DISPLAY_FORMAT
28
+ } from './data-utils';
29
+ export {createNewDataEntry, datasetColorMaker, findDefaultColorField} from './dataset-utils';
30
+ export {hexToRgb, checkColorOrFallback} from './color-utils';
31
+ export {errorNotification} from './notifications-utils';
32
+ export {dataURItoBlob, downloadFile} from './export-utils';
33
+ export {
34
+ calculateLayerData,
35
+ prepareLayersToRender,
36
+ prepareLayersForDeck,
37
+ negateAccessor
38
+ } from './layer-utils';
39
+ export {
40
+ applyFilterFieldName,
41
+ applyFiltersToDatasets,
42
+ validateFilterWithData,
43
+ validateFiltersUpdateDatasets,
44
+ getIntervalBins,
45
+ getNumericStepSize,
46
+ formatNumberByStep
47
+ } from 'utils/filter-utils';
48
+ export {resetFilterGpuMode, assignGpuChannels} from 'utils/gpu-filter-utils';
49
+
50
+ // REDUCER UTILS
51
+ export {updateAllLayerDomainData} from '../reducers/vis-state-updaters';
52
+ export {getHexFields} from '../layers/h3-hexagon-layer/h3-utils';
53
+ export {containValidTime} from '../layers/trip-layer/trip-utils';
54
+
55
+ export {
56
+ default as KeplerTable,
57
+ findPointFieldPairs,
58
+ copyTableAndUpdate
59
+ } from './table-utils/kepler-table';
60
+ export {createDataContainer, createIndexedDataContainer} from './table-utils/data-container-utils';
61
+
62
+ export * from './color-utils';
63
+ export * from './data-scale-utils';
64
+ export * from './data-utils';
65
+ export * from './dataset-utils';
66
+ export * from './gpu-filter-utils';
67
+ export * from './interaction-utils';
68
+ export * from './layer-utils';
69
+ export * from './observe-dimensions';
70
+
71
+ // CARTO ADDITIONS
72
+ export { generateHashId } from './utils';