react-globe.gl 2.18.9 → 2.20.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.
- package/README.md +77 -20
- package/dist/react-globe.gl.common.js +160 -151
- package/dist/react-globe.gl.d.ts +31 -20
- package/dist/react-globe.gl.js +3969 -2739
- package/dist/react-globe.gl.js.map +1 -1
- package/dist/react-globe.gl.min.js +4 -4
- package/dist/react-globe.gl.module.js +9 -0
- package/package.json +15 -15
|
@@ -11,159 +11,168 @@ var GlobeKapsule__default = /*#__PURE__*/_interopDefaultLegacy(GlobeKapsule);
|
|
|
11
11
|
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
|
|
12
12
|
|
|
13
13
|
var GlobePropTypes = {
|
|
14
|
-
width: PropTypes__default[
|
|
15
|
-
height: PropTypes__default[
|
|
16
|
-
backgroundColor: PropTypes__default[
|
|
17
|
-
backgroundImageUrl: PropTypes__default[
|
|
18
|
-
globeImageUrl: PropTypes__default[
|
|
19
|
-
bumpImageUrl: PropTypes__default[
|
|
20
|
-
showGlobe: PropTypes__default[
|
|
21
|
-
showGraticules: PropTypes__default[
|
|
22
|
-
showAtmosphere: PropTypes__default[
|
|
23
|
-
atmosphereColor: PropTypes__default[
|
|
24
|
-
atmosphereAltitude: PropTypes__default[
|
|
25
|
-
globeMaterial: PropTypes__default[
|
|
26
|
-
onGlobeReady: PropTypes__default[
|
|
27
|
-
onGlobeClick: PropTypes__default[
|
|
28
|
-
onGlobeRightClick: PropTypes__default[
|
|
29
|
-
pointsData: PropTypes__default[
|
|
30
|
-
pointLat: PropTypes__default[
|
|
31
|
-
pointLng: PropTypes__default[
|
|
32
|
-
pointColor: PropTypes__default[
|
|
33
|
-
pointAltitude: PropTypes__default[
|
|
34
|
-
pointRadius: PropTypes__default[
|
|
35
|
-
pointResolution: PropTypes__default[
|
|
36
|
-
pointsMerge: PropTypes__default[
|
|
37
|
-
pointsTransitionDuration: PropTypes__default[
|
|
38
|
-
pointLabel: PropTypes__default[
|
|
39
|
-
onPointClick: PropTypes__default[
|
|
40
|
-
onPointRightClick: PropTypes__default[
|
|
41
|
-
onPointHover: PropTypes__default[
|
|
42
|
-
arcsData: PropTypes__default[
|
|
43
|
-
arcStartLat: PropTypes__default[
|
|
44
|
-
arcStartLng: PropTypes__default[
|
|
45
|
-
arcEndLat: PropTypes__default[
|
|
46
|
-
arcEndLng: PropTypes__default[
|
|
47
|
-
arcColor: PropTypes__default[
|
|
48
|
-
arcAltitude: PropTypes__default[
|
|
49
|
-
arcAltitudeAutoScale: PropTypes__default[
|
|
50
|
-
arcStroke: PropTypes__default[
|
|
51
|
-
arcCurveResolution: PropTypes__default[
|
|
52
|
-
arcCircularResolution: PropTypes__default[
|
|
53
|
-
arcDashLength: PropTypes__default[
|
|
54
|
-
arcDashGap: PropTypes__default[
|
|
55
|
-
arcDashInitialGap: PropTypes__default[
|
|
56
|
-
arcDashAnimateTime: PropTypes__default[
|
|
57
|
-
arcsTransitionDuration: PropTypes__default[
|
|
58
|
-
arcLabel: PropTypes__default[
|
|
59
|
-
onArcClick: PropTypes__default[
|
|
60
|
-
onArcRightClick: PropTypes__default[
|
|
61
|
-
onArcHover: PropTypes__default[
|
|
62
|
-
polygonsData: PropTypes__default[
|
|
63
|
-
polygonGeoJsonGeometry: PropTypes__default[
|
|
64
|
-
polygonCapColor: PropTypes__default[
|
|
65
|
-
polygonCapMaterial: PropTypes__default[
|
|
66
|
-
polygonSideColor: PropTypes__default[
|
|
67
|
-
polygonSideMaterial: PropTypes__default[
|
|
68
|
-
polygonStrokeColor: PropTypes__default[
|
|
69
|
-
polygonAltitude: PropTypes__default[
|
|
70
|
-
polygonCapCurvatureResolution: PropTypes__default[
|
|
71
|
-
polygonsTransitionDuration: PropTypes__default[
|
|
72
|
-
polygonLabel: PropTypes__default[
|
|
73
|
-
onPolygonClick: PropTypes__default[
|
|
74
|
-
onPolygonRightClick: PropTypes__default[
|
|
75
|
-
onPolygonHover: PropTypes__default[
|
|
76
|
-
pathsData: PropTypes__default[
|
|
77
|
-
pathPoints: PropTypes__default[
|
|
78
|
-
pathPointLat: PropTypes__default[
|
|
79
|
-
pathPointLng: PropTypes__default[
|
|
80
|
-
pathPointAlt: PropTypes__default[
|
|
81
|
-
pathResolution: PropTypes__default[
|
|
82
|
-
pathColor: PropTypes__default[
|
|
83
|
-
pathStroke: PropTypes__default[
|
|
84
|
-
pathDashLength: PropTypes__default[
|
|
85
|
-
pathDashGap: PropTypes__default[
|
|
86
|
-
pathDashInitialGap: PropTypes__default[
|
|
87
|
-
pathDashAnimateTime: PropTypes__default[
|
|
88
|
-
pathTransitionDuration: PropTypes__default[
|
|
89
|
-
pathLabel: PropTypes__default[
|
|
90
|
-
onPathClick: PropTypes__default[
|
|
91
|
-
onPathRightClick: PropTypes__default[
|
|
92
|
-
onPathHover: PropTypes__default[
|
|
93
|
-
hexBinPointsData: PropTypes__default[
|
|
94
|
-
hexBinPointLat: PropTypes__default[
|
|
95
|
-
hexBinPointLng: PropTypes__default[
|
|
96
|
-
hexBinPointWeight: PropTypes__default[
|
|
97
|
-
hexBinResolution: PropTypes__default[
|
|
98
|
-
hexMargin: PropTypes__default[
|
|
99
|
-
hexTopColor: PropTypes__default[
|
|
100
|
-
hexSideColor: PropTypes__default[
|
|
101
|
-
hexAltitude: PropTypes__default[
|
|
102
|
-
hexTopCurvatureResolution: PropTypes__default[
|
|
103
|
-
hexBinMerge: PropTypes__default[
|
|
104
|
-
hexTransitionDuration: PropTypes__default[
|
|
105
|
-
hexLabel: PropTypes__default[
|
|
106
|
-
onHexClick: PropTypes__default[
|
|
107
|
-
onHexRightClick: PropTypes__default[
|
|
108
|
-
onHexHover: PropTypes__default[
|
|
109
|
-
hexPolygonsData: PropTypes__default[
|
|
110
|
-
hexPolygonGeoJsonGeometry: PropTypes__default[
|
|
111
|
-
hexPolygonColor: PropTypes__default[
|
|
112
|
-
hexPolygonAltitude: PropTypes__default[
|
|
113
|
-
hexPolygonResolution: PropTypes__default[
|
|
114
|
-
hexPolygonMargin: PropTypes__default[
|
|
115
|
-
hexPolygonCurvatureResolution: PropTypes__default[
|
|
116
|
-
hexPolygonsTransitionDuration: PropTypes__default[
|
|
117
|
-
hexPolygonLabel: PropTypes__default[
|
|
118
|
-
onHexPolygonClick: PropTypes__default[
|
|
119
|
-
onHexPolygonRightClick: PropTypes__default[
|
|
120
|
-
onHexPolygonHover: PropTypes__default[
|
|
121
|
-
tilesData: PropTypes__default[
|
|
122
|
-
tileLat: PropTypes__default[
|
|
123
|
-
tileLng: PropTypes__default[
|
|
124
|
-
tileAltitude: PropTypes__default[
|
|
125
|
-
tileWidth: PropTypes__default[
|
|
126
|
-
tileHeight: PropTypes__default[
|
|
127
|
-
tileUseGlobeProjection: PropTypes__default[
|
|
128
|
-
tileMaterial: PropTypes__default[
|
|
129
|
-
tileCurvatureResolution: PropTypes__default[
|
|
130
|
-
tilesTransitionDuration: PropTypes__default[
|
|
131
|
-
tileLabel: PropTypes__default[
|
|
132
|
-
onTileClick: PropTypes__default[
|
|
133
|
-
onTileRightClick: PropTypes__default[
|
|
134
|
-
onTileHover: PropTypes__default[
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
14
|
+
width: PropTypes__default["default"].number,
|
|
15
|
+
height: PropTypes__default["default"].number,
|
|
16
|
+
backgroundColor: PropTypes__default["default"].string,
|
|
17
|
+
backgroundImageUrl: PropTypes__default["default"].string,
|
|
18
|
+
globeImageUrl: PropTypes__default["default"].string,
|
|
19
|
+
bumpImageUrl: PropTypes__default["default"].string,
|
|
20
|
+
showGlobe: PropTypes__default["default"].bool,
|
|
21
|
+
showGraticules: PropTypes__default["default"].bool,
|
|
22
|
+
showAtmosphere: PropTypes__default["default"].bool,
|
|
23
|
+
atmosphereColor: PropTypes__default["default"].string,
|
|
24
|
+
atmosphereAltitude: PropTypes__default["default"].number,
|
|
25
|
+
globeMaterial: PropTypes__default["default"].object,
|
|
26
|
+
onGlobeReady: PropTypes__default["default"].func,
|
|
27
|
+
onGlobeClick: PropTypes__default["default"].func,
|
|
28
|
+
onGlobeRightClick: PropTypes__default["default"].func,
|
|
29
|
+
pointsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
30
|
+
pointLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
31
|
+
pointLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
32
|
+
pointColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
33
|
+
pointAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
34
|
+
pointRadius: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
35
|
+
pointResolution: PropTypes__default["default"].number,
|
|
36
|
+
pointsMerge: PropTypes__default["default"].bool,
|
|
37
|
+
pointsTransitionDuration: PropTypes__default["default"].number,
|
|
38
|
+
pointLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
39
|
+
onPointClick: PropTypes__default["default"].func,
|
|
40
|
+
onPointRightClick: PropTypes__default["default"].func,
|
|
41
|
+
onPointHover: PropTypes__default["default"].func,
|
|
42
|
+
arcsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
43
|
+
arcStartLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
44
|
+
arcStartLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
45
|
+
arcEndLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
46
|
+
arcEndLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
47
|
+
arcColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].arrayOf(PropTypes__default["default"].string), PropTypes__default["default"].func]),
|
|
48
|
+
arcAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
49
|
+
arcAltitudeAutoScale: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
50
|
+
arcStroke: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
51
|
+
arcCurveResolution: PropTypes__default["default"].number,
|
|
52
|
+
arcCircularResolution: PropTypes__default["default"].number,
|
|
53
|
+
arcDashLength: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
54
|
+
arcDashGap: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
55
|
+
arcDashInitialGap: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
56
|
+
arcDashAnimateTime: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
57
|
+
arcsTransitionDuration: PropTypes__default["default"].number,
|
|
58
|
+
arcLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
59
|
+
onArcClick: PropTypes__default["default"].func,
|
|
60
|
+
onArcRightClick: PropTypes__default["default"].func,
|
|
61
|
+
onArcHover: PropTypes__default["default"].func,
|
|
62
|
+
polygonsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
63
|
+
polygonGeoJsonGeometry: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
64
|
+
polygonCapColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
65
|
+
polygonCapMaterial: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
66
|
+
polygonSideColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
67
|
+
polygonSideMaterial: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
68
|
+
polygonStrokeColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
69
|
+
polygonAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
70
|
+
polygonCapCurvatureResolution: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
71
|
+
polygonsTransitionDuration: PropTypes__default["default"].number,
|
|
72
|
+
polygonLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
73
|
+
onPolygonClick: PropTypes__default["default"].func,
|
|
74
|
+
onPolygonRightClick: PropTypes__default["default"].func,
|
|
75
|
+
onPolygonHover: PropTypes__default["default"].func,
|
|
76
|
+
pathsData: PropTypes__default["default"].array,
|
|
77
|
+
pathPoints: PropTypes__default["default"].oneOfType([PropTypes__default["default"].array, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
78
|
+
pathPointLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
79
|
+
pathPointLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
80
|
+
pathPointAlt: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
81
|
+
pathResolution: PropTypes__default["default"].number,
|
|
82
|
+
pathColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].arrayOf(PropTypes__default["default"].string), PropTypes__default["default"].func]),
|
|
83
|
+
pathStroke: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
84
|
+
pathDashLength: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
85
|
+
pathDashGap: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
86
|
+
pathDashInitialGap: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
87
|
+
pathDashAnimateTime: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
88
|
+
pathTransitionDuration: PropTypes__default["default"].number,
|
|
89
|
+
pathLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
90
|
+
onPathClick: PropTypes__default["default"].func,
|
|
91
|
+
onPathRightClick: PropTypes__default["default"].func,
|
|
92
|
+
onPathHover: PropTypes__default["default"].func,
|
|
93
|
+
hexBinPointsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
94
|
+
hexBinPointLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
95
|
+
hexBinPointLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
96
|
+
hexBinPointWeight: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
97
|
+
hexBinResolution: PropTypes__default["default"].number,
|
|
98
|
+
hexMargin: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].func]),
|
|
99
|
+
hexTopColor: PropTypes__default["default"].func,
|
|
100
|
+
hexSideColor: PropTypes__default["default"].func,
|
|
101
|
+
hexAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].func]),
|
|
102
|
+
hexTopCurvatureResolution: PropTypes__default["default"].number,
|
|
103
|
+
hexBinMerge: PropTypes__default["default"].bool,
|
|
104
|
+
hexTransitionDuration: PropTypes__default["default"].number,
|
|
105
|
+
hexLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
106
|
+
onHexClick: PropTypes__default["default"].func,
|
|
107
|
+
onHexRightClick: PropTypes__default["default"].func,
|
|
108
|
+
onHexHover: PropTypes__default["default"].func,
|
|
109
|
+
hexPolygonsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
110
|
+
hexPolygonGeoJsonGeometry: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
111
|
+
hexPolygonColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
112
|
+
hexPolygonAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
113
|
+
hexPolygonResolution: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
114
|
+
hexPolygonMargin: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
115
|
+
hexPolygonCurvatureResolution: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
116
|
+
hexPolygonsTransitionDuration: PropTypes__default["default"].number,
|
|
117
|
+
hexPolygonLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
118
|
+
onHexPolygonClick: PropTypes__default["default"].func,
|
|
119
|
+
onHexPolygonRightClick: PropTypes__default["default"].func,
|
|
120
|
+
onHexPolygonHover: PropTypes__default["default"].func,
|
|
121
|
+
tilesData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
122
|
+
tileLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
123
|
+
tileLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
124
|
+
tileAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
125
|
+
tileWidth: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
126
|
+
tileHeight: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
127
|
+
tileUseGlobeProjection: PropTypes__default["default"].oneOfType([PropTypes__default["default"].bool, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
128
|
+
tileMaterial: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
129
|
+
tileCurvatureResolution: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
130
|
+
tilesTransitionDuration: PropTypes__default["default"].number,
|
|
131
|
+
tileLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
132
|
+
onTileClick: PropTypes__default["default"].func,
|
|
133
|
+
onTileRightClick: PropTypes__default["default"].func,
|
|
134
|
+
onTileHover: PropTypes__default["default"].func,
|
|
135
|
+
ringsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
136
|
+
ringLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
137
|
+
ringLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
138
|
+
ringAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
139
|
+
ringColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].arrayOf(PropTypes__default["default"].string), PropTypes__default["default"].func]),
|
|
140
|
+
ringResolution: PropTypes__default["default"].number,
|
|
141
|
+
ringMaxRadius: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
142
|
+
ringPropagationSpeed: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
143
|
+
ringRepeatPeriod: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
144
|
+
labelsData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
145
|
+
labelLat: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
146
|
+
labelLng: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
147
|
+
labelAltitude: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
148
|
+
labelRotation: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
149
|
+
labelText: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
150
|
+
labelSize: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
151
|
+
labelTypeFace: PropTypes__default["default"].object,
|
|
152
|
+
labelColor: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
153
|
+
labelResolution: PropTypes__default["default"].number,
|
|
154
|
+
labelIncludeDot: PropTypes__default["default"].oneOfType([PropTypes__default["default"].bool, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
155
|
+
labelDotRadius: PropTypes__default["default"].oneOfType([PropTypes__default["default"].number, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
156
|
+
labelDotOrientation: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
157
|
+
labelsTransitionDuration: PropTypes__default["default"].number,
|
|
158
|
+
labelLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
159
|
+
onLabelClick: PropTypes__default["default"].func,
|
|
160
|
+
onLabelRightClick: PropTypes__default["default"].func,
|
|
161
|
+
onLabelHover: PropTypes__default["default"].func,
|
|
162
|
+
customLayerData: PropTypes__default["default"].arrayOf(PropTypes__default["default"].object),
|
|
163
|
+
customThreeObject: PropTypes__default["default"].oneOfType([PropTypes__default["default"].object, PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
164
|
+
customThreeObjectUpdate: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
165
|
+
customLayerLabel: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].func]),
|
|
166
|
+
onCustomLayerClick: PropTypes__default["default"].func,
|
|
167
|
+
onCustomLayerRightClick: PropTypes__default["default"].func,
|
|
168
|
+
onCustomLayerHover: PropTypes__default["default"].func,
|
|
169
|
+
enablePointerInteraction: PropTypes__default["default"].bool,
|
|
170
|
+
pointerEventsFilter: PropTypes__default["default"].func,
|
|
171
|
+
lineHoverPrecision: PropTypes__default["default"].number,
|
|
172
|
+
onZoom: PropTypes__default["default"].func
|
|
164
173
|
};
|
|
165
174
|
|
|
166
|
-
var Globe = fromKapsule__default[
|
|
175
|
+
var Globe = fromKapsule__default["default"](GlobeKapsule__default["default"], {
|
|
167
176
|
methodNames: [// bind methods
|
|
168
177
|
'pauseAnimation', 'resumeAnimation', 'pointOfView', 'scene', 'camera', 'renderer', 'postProcessingComposer', 'controls', 'getCoords', 'getScreenCoords', 'toGeoCoords', 'toGlobeCoords'],
|
|
169
178
|
initPropNames: ['animateIn', 'waitForGlobeReady', 'rendererConfig']
|
package/dist/react-globe.gl.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
70
70
|
pointsMerge?: boolean;
|
|
71
71
|
pointsTransitionDuration?: number;
|
|
72
72
|
pointLabel?: ObjAccessor<string>;
|
|
73
|
-
onPointClick?: (point: object, event: MouseEvent) => void;
|
|
74
|
-
onPointRightClick?: (point: object, event: MouseEvent) => void;
|
|
73
|
+
onPointClick?: (point: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
74
|
+
onPointRightClick?: (point: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
75
75
|
onPointHover?: (point: object | null, prevPoint: object | null) => void;
|
|
76
76
|
|
|
77
77
|
// Arcs layer
|
|
@@ -80,7 +80,7 @@ interface GlobeProps extends ConfigOptions {
|
|
|
80
80
|
arcStartLng?: ObjAccessor<number>;
|
|
81
81
|
arcEndLat?: ObjAccessor<number>;
|
|
82
82
|
arcEndLng?: ObjAccessor<number>;
|
|
83
|
-
arcColor?: ObjAccessor<string | string[]>;
|
|
83
|
+
arcColor?: ObjAccessor<string | string[] | ((t: number) => string)>;
|
|
84
84
|
arcAltitude?: ObjAccessor<number | null>;
|
|
85
85
|
arcAltitudeAutoScale?: ObjAccessor<number>;
|
|
86
86
|
arcStroke?: ObjAccessor<number | null>;
|
|
@@ -92,8 +92,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
92
92
|
arcDashAnimateTime?: ObjAccessor<number>;
|
|
93
93
|
arcsTransitionDuration?: number;
|
|
94
94
|
arcLabel?: ObjAccessor<string>;
|
|
95
|
-
onArcClick?: (arc: object, event: MouseEvent) => void;
|
|
96
|
-
onArcRightClick?: (arc: object, event: MouseEvent) => void;
|
|
95
|
+
onArcClick?: (arc: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
96
|
+
onArcRightClick?: (arc: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
97
97
|
onArcHover?: (arc: object | null, prevArc: object | null) => void;
|
|
98
98
|
|
|
99
99
|
// Polygons layer
|
|
@@ -108,8 +108,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
108
108
|
polygonCapCurvatureResolution?: ObjAccessor<number>;
|
|
109
109
|
polygonsTransitionDuration?: number;
|
|
110
110
|
polygonLabel?: ObjAccessor<string>;
|
|
111
|
-
onPolygonClick?: (polygon: object, event: MouseEvent) => void;
|
|
112
|
-
onPolygonRightClick?: (polygon: object, event: MouseEvent) => void;
|
|
111
|
+
onPolygonClick?: (polygon: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
112
|
+
onPolygonRightClick?: (polygon: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
113
113
|
onPolygonHover?: (polygon: object | null, prevPolygon: object | null) => void;
|
|
114
114
|
|
|
115
115
|
// Paths layer
|
|
@@ -119,7 +119,7 @@ interface GlobeProps extends ConfigOptions {
|
|
|
119
119
|
pathPointLng?: Accessor<any, number>;
|
|
120
120
|
pathPointAlt?: Accessor<any, number>;
|
|
121
121
|
pathResolution?: number;
|
|
122
|
-
pathColor?: ObjAccessor<string | string[]>;
|
|
122
|
+
pathColor?: ObjAccessor<string | string[] | ((t: number) => string)>;
|
|
123
123
|
pathStroke?: ObjAccessor<number | null>;
|
|
124
124
|
pathDashLength?: ObjAccessor<number>;
|
|
125
125
|
pathDashGap?: ObjAccessor<number>;
|
|
@@ -127,8 +127,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
127
127
|
pathDashAnimateTime?: ObjAccessor<number>;
|
|
128
128
|
pathTransitionDuration?: number;
|
|
129
129
|
pathLabel?: ObjAccessor<string>;
|
|
130
|
-
onPathClick?: (path: object, event: MouseEvent) => void;
|
|
131
|
-
onPathRightClick?: (path: object, event: MouseEvent) => void;
|
|
130
|
+
onPathClick?: (path: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
131
|
+
onPathRightClick?: (path: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
132
132
|
onPathHover?: (path: object | null, prevPath: object | null) => void;
|
|
133
133
|
|
|
134
134
|
// Hex Bin layer
|
|
@@ -145,8 +145,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
145
145
|
hexBinMerge?: boolean;
|
|
146
146
|
hexTransitionDuration?: number;
|
|
147
147
|
hexLabel?: HexBinAccessor<string>;
|
|
148
|
-
onHexClick?: (hex: HexBin, event: MouseEvent) => void;
|
|
149
|
-
onHexRightClick?: (hex: HexBin, event: MouseEvent) => void;
|
|
148
|
+
onHexClick?: (hex: HexBin, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
149
|
+
onHexRightClick?: (hex: HexBin, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
150
150
|
onHexHover?: (hex: HexBin | null, prevHex: HexBin | null) => void;
|
|
151
151
|
|
|
152
152
|
// Hexed Polygons layer
|
|
@@ -159,8 +159,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
159
159
|
hexPolygonCurvatureResolution?: ObjAccessor<number>;
|
|
160
160
|
hexPolygonsTransitionDuration?: number;
|
|
161
161
|
hexPolygonLabel?: ObjAccessor<string>;
|
|
162
|
-
onHexPolygonClick?: (polygon: object, event: MouseEvent) => void;
|
|
163
|
-
onHexPolygonRightClick?: (polygon: object, event: MouseEvent) => void;
|
|
162
|
+
onHexPolygonClick?: (polygon: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
163
|
+
onHexPolygonRightClick?: (polygon: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
164
164
|
onHexPolygonHover?: (polygon: object | null, prevPolygon: object | null) => void;
|
|
165
165
|
|
|
166
166
|
// Tiles layer
|
|
@@ -175,10 +175,21 @@ interface GlobeProps extends ConfigOptions {
|
|
|
175
175
|
tileCurvatureResolution?: ObjAccessor<number>;
|
|
176
176
|
tilesTransitionDuration?: number;
|
|
177
177
|
tileLabel?: ObjAccessor<string>;
|
|
178
|
-
onTileClick?: (tile: object, event: MouseEvent) => void;
|
|
179
|
-
onTileRightClick?: (tile: object, event: MouseEvent) => void;
|
|
178
|
+
onTileClick?: (tile: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
179
|
+
onTileRightClick?: (tile: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
180
180
|
onTileHover?: (tile: object | null, prevTile: object | null) => void;
|
|
181
181
|
|
|
182
|
+
// Rings Layer
|
|
183
|
+
ringsData?: object[];
|
|
184
|
+
ringLat?: ObjAccessor<number>;
|
|
185
|
+
ringLng?: ObjAccessor<number>;
|
|
186
|
+
ringAltitude?: ObjAccessor<number>;
|
|
187
|
+
ringColor?: ObjAccessor<string | string[] | ((t: number) => string)>;
|
|
188
|
+
ringResolution?: number;
|
|
189
|
+
ringMaxRadius?: ObjAccessor<number>;
|
|
190
|
+
ringPropagationSpeed?: ObjAccessor<number>;
|
|
191
|
+
ringRepeatPeriod?: ObjAccessor<number>;
|
|
192
|
+
|
|
182
193
|
// Labels layer
|
|
183
194
|
labelsData?: object[];
|
|
184
195
|
labelLat?: ObjAccessor<number>;
|
|
@@ -195,8 +206,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
195
206
|
labelDotOrientation?: ObjAccessor<LabelOrientation>;
|
|
196
207
|
labelsTransitionDuration?: number;
|
|
197
208
|
labelLabel?: ObjAccessor<string>;
|
|
198
|
-
onLabelClick?: (label: object, event: MouseEvent) => void;
|
|
199
|
-
onLabelRightClick?: (label: object, event: MouseEvent) => void;
|
|
209
|
+
onLabelClick?: (label: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
210
|
+
onLabelRightClick?: (label: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
200
211
|
onLabelHover?: (label: object | null, prevLabel: object | null) => void;
|
|
201
212
|
|
|
202
213
|
// Custom layer
|
|
@@ -204,8 +215,8 @@ interface GlobeProps extends ConfigOptions {
|
|
|
204
215
|
customThreeObject?: Object3D | string | ((d: object, globeRadius: number) => Object3D);
|
|
205
216
|
customThreeObjectUpdate?: string | ((obj: Object3D, objData: object, globeRadius: number) => void);
|
|
206
217
|
customLayerLabel?: ObjAccessor<string>;
|
|
207
|
-
onCustomLayerClick?: (obj: object, event: MouseEvent) => void;
|
|
208
|
-
onCustomLayerRightClick?: (obj: object, event: MouseEvent) => void;
|
|
218
|
+
onCustomLayerClick?: (obj: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
219
|
+
onCustomLayerRightClick?: (obj: object, event: MouseEvent, coords: { lat, lng, altitude }) => void;
|
|
209
220
|
onCustomLayerHover?: (obj: object | null, prevObj: object | null) => void;
|
|
210
221
|
|
|
211
222
|
// Render control
|