react-globe.gl 2.22.4 → 2.22.6
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.
- package/dist/react-globe.gl.common.js +177 -182
- package/dist/react-globe.gl.d.ts +2 -1
- package/dist/react-globe.gl.js +1141 -1182
- package/dist/react-globe.gl.js.map +1 -1
- package/dist/react-globe.gl.min.js +5 -5
- package/dist/react-globe.gl.module.js +2 -1
- package/package.json +13 -13
|
@@ -4,191 +4,186 @@ var fromKapsule = require('react-kapsule');
|
|
|
4
4
|
var GlobeKapsule = require('globe.gl');
|
|
5
5
|
var PropTypes = require('prop-types');
|
|
6
6
|
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var fromKapsule__default = /*#__PURE__*/_interopDefaultLegacy(fromKapsule);
|
|
10
|
-
var GlobeKapsule__default = /*#__PURE__*/_interopDefaultLegacy(GlobeKapsule);
|
|
11
|
-
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
12
|
-
|
|
13
7
|
var GlobePropTypes = {
|
|
14
|
-
width:
|
|
15
|
-
height:
|
|
16
|
-
backgroundColor:
|
|
17
|
-
backgroundImageUrl:
|
|
18
|
-
globeImageUrl:
|
|
19
|
-
bumpImageUrl:
|
|
20
|
-
showGlobe:
|
|
21
|
-
showGraticules:
|
|
22
|
-
showAtmosphere:
|
|
23
|
-
atmosphereColor:
|
|
24
|
-
atmosphereAltitude:
|
|
25
|
-
globeMaterial:
|
|
26
|
-
onGlobeReady:
|
|
27
|
-
onGlobeClick:
|
|
28
|
-
onGlobeRightClick:
|
|
29
|
-
pointsData:
|
|
30
|
-
pointLat:
|
|
31
|
-
pointLng:
|
|
32
|
-
pointColor:
|
|
33
|
-
pointAltitude:
|
|
34
|
-
pointRadius:
|
|
35
|
-
pointResolution:
|
|
36
|
-
pointsMerge:
|
|
37
|
-
pointsTransitionDuration:
|
|
38
|
-
pointLabel:
|
|
39
|
-
onPointClick:
|
|
40
|
-
onPointRightClick:
|
|
41
|
-
onPointHover:
|
|
42
|
-
arcsData:
|
|
43
|
-
arcStartLat:
|
|
44
|
-
arcStartLng:
|
|
45
|
-
arcEndLat:
|
|
46
|
-
arcEndLng:
|
|
47
|
-
arcColor:
|
|
48
|
-
arcAltitude:
|
|
49
|
-
arcAltitudeAutoScale:
|
|
50
|
-
arcStroke:
|
|
51
|
-
arcCurveResolution:
|
|
52
|
-
arcCircularResolution:
|
|
53
|
-
arcDashLength:
|
|
54
|
-
arcDashGap:
|
|
55
|
-
arcDashInitialGap:
|
|
56
|
-
arcDashAnimateTime:
|
|
57
|
-
arcsTransitionDuration:
|
|
58
|
-
arcLabel:
|
|
59
|
-
onArcClick:
|
|
60
|
-
onArcRightClick:
|
|
61
|
-
onArcHover:
|
|
62
|
-
polygonsData:
|
|
63
|
-
polygonGeoJsonGeometry:
|
|
64
|
-
polygonCapColor:
|
|
65
|
-
polygonCapMaterial:
|
|
66
|
-
polygonSideColor:
|
|
67
|
-
polygonSideMaterial:
|
|
68
|
-
polygonStrokeColor:
|
|
69
|
-
polygonAltitude:
|
|
70
|
-
polygonCapCurvatureResolution:
|
|
71
|
-
polygonsTransitionDuration:
|
|
72
|
-
polygonLabel:
|
|
73
|
-
onPolygonClick:
|
|
74
|
-
onPolygonRightClick:
|
|
75
|
-
onPolygonHover:
|
|
76
|
-
pathsData:
|
|
77
|
-
pathPoints:
|
|
78
|
-
pathPointLat:
|
|
79
|
-
pathPointLng:
|
|
80
|
-
pathPointAlt:
|
|
81
|
-
pathResolution:
|
|
82
|
-
pathColor:
|
|
83
|
-
pathStroke:
|
|
84
|
-
pathDashLength:
|
|
85
|
-
pathDashGap:
|
|
86
|
-
pathDashInitialGap:
|
|
87
|
-
pathDashAnimateTime:
|
|
88
|
-
pathTransitionDuration:
|
|
89
|
-
pathLabel:
|
|
90
|
-
onPathClick:
|
|
91
|
-
onPathRightClick:
|
|
92
|
-
onPathHover:
|
|
93
|
-
hexBinPointsData:
|
|
94
|
-
hexBinPointLat:
|
|
95
|
-
hexBinPointLng:
|
|
96
|
-
hexBinPointWeight:
|
|
97
|
-
hexBinResolution:
|
|
98
|
-
hexMargin:
|
|
99
|
-
hexTopColor:
|
|
100
|
-
hexSideColor:
|
|
101
|
-
hexAltitude:
|
|
102
|
-
hexTopCurvatureResolution:
|
|
103
|
-
hexBinMerge:
|
|
104
|
-
hexTransitionDuration:
|
|
105
|
-
hexLabel:
|
|
106
|
-
onHexClick:
|
|
107
|
-
onHexRightClick:
|
|
108
|
-
onHexHover:
|
|
109
|
-
hexPolygonsData:
|
|
110
|
-
hexPolygonGeoJsonGeometry:
|
|
111
|
-
hexPolygonColor:
|
|
112
|
-
hexPolygonAltitude:
|
|
113
|
-
hexPolygonResolution:
|
|
114
|
-
hexPolygonMargin:
|
|
115
|
-
hexPolygonCurvatureResolution:
|
|
116
|
-
hexPolygonsTransitionDuration:
|
|
117
|
-
hexPolygonLabel:
|
|
118
|
-
onHexPolygonClick:
|
|
119
|
-
onHexPolygonRightClick:
|
|
120
|
-
onHexPolygonHover:
|
|
121
|
-
tilesData:
|
|
122
|
-
tileLat:
|
|
123
|
-
tileLng:
|
|
124
|
-
tileAltitude:
|
|
125
|
-
tileWidth:
|
|
126
|
-
tileHeight:
|
|
127
|
-
tileUseGlobeProjection:
|
|
128
|
-
tileMaterial:
|
|
129
|
-
tileCurvatureResolution:
|
|
130
|
-
tilesTransitionDuration:
|
|
131
|
-
tileLabel:
|
|
132
|
-
onTileClick:
|
|
133
|
-
onTileRightClick:
|
|
134
|
-
onTileHover:
|
|
135
|
-
ringsData:
|
|
136
|
-
ringLat:
|
|
137
|
-
ringLng:
|
|
138
|
-
ringAltitude:
|
|
139
|
-
ringColor:
|
|
140
|
-
ringResolution:
|
|
141
|
-
ringMaxRadius:
|
|
142
|
-
ringPropagationSpeed:
|
|
143
|
-
ringRepeatPeriod:
|
|
144
|
-
labelsData:
|
|
145
|
-
labelLat:
|
|
146
|
-
labelLng:
|
|
147
|
-
labelAltitude:
|
|
148
|
-
labelRotation:
|
|
149
|
-
labelText:
|
|
150
|
-
labelSize:
|
|
151
|
-
labelTypeFace:
|
|
152
|
-
labelColor:
|
|
153
|
-
labelResolution:
|
|
154
|
-
labelIncludeDot:
|
|
155
|
-
labelDotRadius:
|
|
156
|
-
labelDotOrientation:
|
|
157
|
-
labelsTransitionDuration:
|
|
158
|
-
labelLabel:
|
|
159
|
-
onLabelClick:
|
|
160
|
-
onLabelRightClick:
|
|
161
|
-
onLabelHover:
|
|
162
|
-
htmlElementsData:
|
|
163
|
-
htmlLat:
|
|
164
|
-
htmlLng:
|
|
165
|
-
htmlAltitude:
|
|
166
|
-
htmlElement:
|
|
167
|
-
htmlTransitionDuration:
|
|
168
|
-
objectsData:
|
|
169
|
-
objectLat:
|
|
170
|
-
objectLng:
|
|
171
|
-
objectAltitude:
|
|
172
|
-
objectThreeObject:
|
|
173
|
-
objectLabel:
|
|
174
|
-
onObjectClick:
|
|
175
|
-
onObjectRightClick:
|
|
176
|
-
onObjectHover:
|
|
177
|
-
customLayerData:
|
|
178
|
-
customThreeObject:
|
|
179
|
-
customThreeObjectUpdate:
|
|
180
|
-
customLayerLabel:
|
|
181
|
-
onCustomLayerClick:
|
|
182
|
-
onCustomLayerRightClick:
|
|
183
|
-
onCustomLayerHover:
|
|
184
|
-
enablePointerInteraction:
|
|
185
|
-
pointerEventsFilter:
|
|
186
|
-
lineHoverPrecision:
|
|
187
|
-
onZoom:
|
|
8
|
+
width: PropTypes.number,
|
|
9
|
+
height: PropTypes.number,
|
|
10
|
+
backgroundColor: PropTypes.string,
|
|
11
|
+
backgroundImageUrl: PropTypes.string,
|
|
12
|
+
globeImageUrl: PropTypes.string,
|
|
13
|
+
bumpImageUrl: PropTypes.string,
|
|
14
|
+
showGlobe: PropTypes.bool,
|
|
15
|
+
showGraticules: PropTypes.bool,
|
|
16
|
+
showAtmosphere: PropTypes.bool,
|
|
17
|
+
atmosphereColor: PropTypes.string,
|
|
18
|
+
atmosphereAltitude: PropTypes.number,
|
|
19
|
+
globeMaterial: PropTypes.object,
|
|
20
|
+
onGlobeReady: PropTypes.func,
|
|
21
|
+
onGlobeClick: PropTypes.func,
|
|
22
|
+
onGlobeRightClick: PropTypes.func,
|
|
23
|
+
pointsData: PropTypes.arrayOf(PropTypes.object),
|
|
24
|
+
pointLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
25
|
+
pointLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
26
|
+
pointColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
27
|
+
pointAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
28
|
+
pointRadius: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
29
|
+
pointResolution: PropTypes.number,
|
|
30
|
+
pointsMerge: PropTypes.bool,
|
|
31
|
+
pointsTransitionDuration: PropTypes.number,
|
|
32
|
+
pointLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
33
|
+
onPointClick: PropTypes.func,
|
|
34
|
+
onPointRightClick: PropTypes.func,
|
|
35
|
+
onPointHover: PropTypes.func,
|
|
36
|
+
arcsData: PropTypes.arrayOf(PropTypes.object),
|
|
37
|
+
arcStartLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
38
|
+
arcStartLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
39
|
+
arcEndLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
40
|
+
arcEndLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
41
|
+
arcColor: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
42
|
+
arcAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
43
|
+
arcAltitudeAutoScale: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
44
|
+
arcStroke: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
45
|
+
arcCurveResolution: PropTypes.number,
|
|
46
|
+
arcCircularResolution: PropTypes.number,
|
|
47
|
+
arcDashLength: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
48
|
+
arcDashGap: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
49
|
+
arcDashInitialGap: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
50
|
+
arcDashAnimateTime: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
51
|
+
arcsTransitionDuration: PropTypes.number,
|
|
52
|
+
arcLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
53
|
+
onArcClick: PropTypes.func,
|
|
54
|
+
onArcRightClick: PropTypes.func,
|
|
55
|
+
onArcHover: PropTypes.func,
|
|
56
|
+
polygonsData: PropTypes.arrayOf(PropTypes.object),
|
|
57
|
+
polygonGeoJsonGeometry: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
58
|
+
polygonCapColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
59
|
+
polygonCapMaterial: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
|
|
60
|
+
polygonSideColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
61
|
+
polygonSideMaterial: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
|
|
62
|
+
polygonStrokeColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
63
|
+
polygonAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
64
|
+
polygonCapCurvatureResolution: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
65
|
+
polygonsTransitionDuration: PropTypes.number,
|
|
66
|
+
polygonLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
67
|
+
onPolygonClick: PropTypes.func,
|
|
68
|
+
onPolygonRightClick: PropTypes.func,
|
|
69
|
+
onPolygonHover: PropTypes.func,
|
|
70
|
+
pathsData: PropTypes.array,
|
|
71
|
+
pathPoints: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.func]),
|
|
72
|
+
pathPointLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
73
|
+
pathPointLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
74
|
+
pathPointAlt: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
75
|
+
pathResolution: PropTypes.number,
|
|
76
|
+
pathColor: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
77
|
+
pathStroke: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
78
|
+
pathDashLength: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
79
|
+
pathDashGap: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
80
|
+
pathDashInitialGap: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
81
|
+
pathDashAnimateTime: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
82
|
+
pathTransitionDuration: PropTypes.number,
|
|
83
|
+
pathLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
84
|
+
onPathClick: PropTypes.func,
|
|
85
|
+
onPathRightClick: PropTypes.func,
|
|
86
|
+
onPathHover: PropTypes.func,
|
|
87
|
+
hexBinPointsData: PropTypes.arrayOf(PropTypes.object),
|
|
88
|
+
hexBinPointLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
89
|
+
hexBinPointLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
90
|
+
hexBinPointWeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
91
|
+
hexBinResolution: PropTypes.number,
|
|
92
|
+
hexMargin: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
93
|
+
hexTopColor: PropTypes.func,
|
|
94
|
+
hexSideColor: PropTypes.func,
|
|
95
|
+
hexAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
|
|
96
|
+
hexTopCurvatureResolution: PropTypes.number,
|
|
97
|
+
hexBinMerge: PropTypes.bool,
|
|
98
|
+
hexTransitionDuration: PropTypes.number,
|
|
99
|
+
hexLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
100
|
+
onHexClick: PropTypes.func,
|
|
101
|
+
onHexRightClick: PropTypes.func,
|
|
102
|
+
onHexHover: PropTypes.func,
|
|
103
|
+
hexPolygonsData: PropTypes.arrayOf(PropTypes.object),
|
|
104
|
+
hexPolygonGeoJsonGeometry: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
105
|
+
hexPolygonColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
106
|
+
hexPolygonAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
107
|
+
hexPolygonResolution: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
108
|
+
hexPolygonMargin: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
109
|
+
hexPolygonCurvatureResolution: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
110
|
+
hexPolygonsTransitionDuration: PropTypes.number,
|
|
111
|
+
hexPolygonLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
112
|
+
onHexPolygonClick: PropTypes.func,
|
|
113
|
+
onHexPolygonRightClick: PropTypes.func,
|
|
114
|
+
onHexPolygonHover: PropTypes.func,
|
|
115
|
+
tilesData: PropTypes.arrayOf(PropTypes.object),
|
|
116
|
+
tileLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
117
|
+
tileLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
118
|
+
tileAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
119
|
+
tileWidth: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
120
|
+
tileHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
121
|
+
tileUseGlobeProjection: PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.func]),
|
|
122
|
+
tileMaterial: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
|
|
123
|
+
tileCurvatureResolution: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
124
|
+
tilesTransitionDuration: PropTypes.number,
|
|
125
|
+
tileLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
126
|
+
onTileClick: PropTypes.func,
|
|
127
|
+
onTileRightClick: PropTypes.func,
|
|
128
|
+
onTileHover: PropTypes.func,
|
|
129
|
+
ringsData: PropTypes.arrayOf(PropTypes.object),
|
|
130
|
+
ringLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
131
|
+
ringLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
132
|
+
ringAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
133
|
+
ringColor: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.func]),
|
|
134
|
+
ringResolution: PropTypes.number,
|
|
135
|
+
ringMaxRadius: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
136
|
+
ringPropagationSpeed: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
137
|
+
ringRepeatPeriod: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
138
|
+
labelsData: PropTypes.arrayOf(PropTypes.object),
|
|
139
|
+
labelLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
140
|
+
labelLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
141
|
+
labelAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
142
|
+
labelRotation: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
143
|
+
labelText: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
144
|
+
labelSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
145
|
+
labelTypeFace: PropTypes.object,
|
|
146
|
+
labelColor: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
147
|
+
labelResolution: PropTypes.number,
|
|
148
|
+
labelIncludeDot: PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.func]),
|
|
149
|
+
labelDotRadius: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
150
|
+
labelDotOrientation: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
151
|
+
labelsTransitionDuration: PropTypes.number,
|
|
152
|
+
labelLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
153
|
+
onLabelClick: PropTypes.func,
|
|
154
|
+
onLabelRightClick: PropTypes.func,
|
|
155
|
+
onLabelHover: PropTypes.func,
|
|
156
|
+
htmlElementsData: PropTypes.arrayOf(PropTypes.object),
|
|
157
|
+
htmlLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
158
|
+
htmlLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
159
|
+
htmlAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
160
|
+
htmlElement: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
161
|
+
htmlTransitionDuration: PropTypes.number,
|
|
162
|
+
objectsData: PropTypes.arrayOf(PropTypes.object),
|
|
163
|
+
objectLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
164
|
+
objectLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
165
|
+
objectAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
|
|
166
|
+
objectThreeObject: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
|
|
167
|
+
objectLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
168
|
+
onObjectClick: PropTypes.func,
|
|
169
|
+
onObjectRightClick: PropTypes.func,
|
|
170
|
+
onObjectHover: PropTypes.func,
|
|
171
|
+
customLayerData: PropTypes.arrayOf(PropTypes.object),
|
|
172
|
+
customThreeObject: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
|
|
173
|
+
customThreeObjectUpdate: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
174
|
+
customLayerLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
|
|
175
|
+
onCustomLayerClick: PropTypes.func,
|
|
176
|
+
onCustomLayerRightClick: PropTypes.func,
|
|
177
|
+
onCustomLayerHover: PropTypes.func,
|
|
178
|
+
enablePointerInteraction: PropTypes.bool,
|
|
179
|
+
pointerEventsFilter: PropTypes.func,
|
|
180
|
+
lineHoverPrecision: PropTypes.number,
|
|
181
|
+
onZoom: PropTypes.func
|
|
188
182
|
};
|
|
189
183
|
|
|
190
|
-
var Globe =
|
|
191
|
-
methodNames: [
|
|
184
|
+
var Globe = fromKapsule(GlobeKapsule, {
|
|
185
|
+
methodNames: [
|
|
186
|
+
// bind methods
|
|
192
187
|
'pauseAnimation', 'resumeAnimation', 'pointOfView', 'scene', 'camera', 'renderer', 'postProcessingComposer', 'controls', 'getGlobeRadius', 'getCoords', 'getScreenCoords', 'toGeoCoords', 'toGlobeCoords'],
|
|
193
188
|
initPropNames: ['animateIn', 'waitForGlobeReady', 'rendererConfig']
|
|
194
189
|
});
|
package/dist/react-globe.gl.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Material, Object3D, Scene, Camera, WebGLRenderer } from 'three';
|
|
3
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js';
|
|
3
4
|
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer.js';
|
|
4
5
|
import { ConfigOptions, GlobeInstance } from 'globe.gl';
|
|
5
6
|
|
|
@@ -255,7 +256,7 @@ interface GlobeMethods {
|
|
|
255
256
|
camera(): Camera;
|
|
256
257
|
renderer(): WebGLRenderer;
|
|
257
258
|
postProcessingComposer(): EffectComposer;
|
|
258
|
-
controls():
|
|
259
|
+
controls(): OrbitControls;
|
|
259
260
|
|
|
260
261
|
// Utilities
|
|
261
262
|
getGlobeRadius(): number;
|