-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
index.ts
116 lines (107 loc) · 4.68 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Copyright (c) 2023 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
export {
default as Layer,
OVERLAY_TYPE_CONST,
LAYER_ID_LENGTH,
colorMaker,
layerColors
} from './base-layer';
import {default as PointLayer} from './point-layer/point-layer';
import {default as ArcLayer} from './arc-layer/arc-layer';
import {default as LineLayer} from './line-layer/line-layer';
import {default as GridLayer} from './grid-layer/grid-layer';
export {pointToPolygonGeo} from './grid-layer/grid-utils';
import {default as HexagonLayer} from './hexagon-layer/hexagon-layer';
import {default as GeojsonLayer} from './geojson-layer/geojson-layer';
export {defaultElevation, defaultLineWidth, defaultRadius} from './geojson-layer/geojson-layer';
import {default as ClusterLayer} from './cluster-layer/cluster-layer';
import {default as IconLayer} from './icon-layer/icon-layer';
import {default as HeatmapLayer} from './heatmap-layer/heatmap-layer';
export {MAX_ZOOM_LEVEL} from './heatmap-layer/heatmap-layer';
import {default as H3Layer} from './h3-hexagon-layer/h3-hexagon-layer';
export {defaultElevation as h3DefaultElevation} from './h3-hexagon-layer/h3-hexagon-layer';
import {default as ScenegraphLayer} from './scenegraph-layer/scenegraph-layer';
import {default as TripLayer} from './trip-layer/trip-layer';
export {defaultLineWidth as tripDefaultLineWidth} from './trip-layer/trip-layer';
export {coordHasLength4, containValidTime, isTripGeoJsonField, parseTripGeoJsonTimestamp, getAnimationDomainFromTimestamps} from './trip-layer/trip-utils';
import {default as S2GeometryLayer} from './s2-geometry-layer/s2-geometry-layer';
export {defaultElevation as s2DefaultElevation} from './s2-geometry-layer/s2-geometry-layer';
export {getS2Center} from './s2-geometry-layer/s2-utils';
export {default as AggregationLayer} from './aggregation-layer';
import {LAYER_TYPES} from '@kepler.gl/constants';
export {parseGeoJsonRawFeature} from './geojson-layer/geojson-utils';
// base layer
// eslint-disable-next-line prettier/prettier
export type {
LayerBaseConfig,
LayerColumns,
LayerColumn,
VisualChannelDomain,
VisualChannel,
VisualChannelDescription,
ColumnPairs,
FindDefaultLayerPropsReturnValue
} from './base-layer';
export * from './base-layer';
// individual layers
export const KeplerGlLayers = {
PointLayer,
ArcLayer,
LineLayer,
GridLayer,
HexagonLayer,
GeojsonLayer,
ClusterLayer,
IconLayer,
HeatmapLayer,
H3Layer,
ScenegraphLayer,
TripLayer,
S2GeometryLayer
};
export type LayerClassesType = typeof LayerClasses;
export const LayerClasses = {
[LAYER_TYPES.point]: PointLayer,
[LAYER_TYPES.arc]: ArcLayer,
[LAYER_TYPES.line]: LineLayer,
[LAYER_TYPES.grid]: GridLayer,
[LAYER_TYPES.hexagon]: HexagonLayer,
[LAYER_TYPES.geojson]: GeojsonLayer,
[LAYER_TYPES.cluster]: ClusterLayer,
[LAYER_TYPES.icon]: IconLayer,
[LAYER_TYPES.heatmap]: HeatmapLayer,
[LAYER_TYPES.hexagonId]: H3Layer,
[LAYER_TYPES['3D']]: ScenegraphLayer,
[LAYER_TYPES.trip]: TripLayer,
[LAYER_TYPES.s2]: S2GeometryLayer
};
export type OVERLAY_TYPE = {[key: string]: string};
export * from './mapbox-utils';
export * from './h3-hexagon-layer';
export {default as Table} from './table';
export {getEditorLayer} from './editor-layer/editor-layer';
export {default as ScenegraphLayer, scenegraphVisConfigs} from './scenegraph-layer/scenegraph-layer';
export {default as ScenegraphLayerIcon} from './scenegraph-layer/scenegraph-layer-icon';
import {isDrawingActive, onClick, onHover, getTooltip, getCursor} from './editor-layer/editor-layer-utils';
export const EditorLayerUtils = {
isDrawingActive, onClick, onHover, getTooltip, getCursor
};
export {getFilterDataFunc} from './aggregation-layer';