react-globe.gl 2.22.9 → 2.23.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.
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-globe.gl",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.0",
|
|
4
4
|
"description": "React component for Globe Data Visualization using ThreeJS/WebGL",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"unpkg": "dist/react-globe.gl.min.js",
|
|
7
|
-
"main": "dist/react-globe.gl.
|
|
8
|
-
"module": "dist/react-globe.gl.
|
|
8
|
+
"main": "dist/react-globe.gl.mjs",
|
|
9
|
+
"module": "dist/react-globe.gl.mjs",
|
|
9
10
|
"types": "dist/react-globe.gl.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
"umd": "./dist/react-globe.min.js",
|
|
13
|
+
"default": "./dist/react-globe.mjs"
|
|
14
|
+
},
|
|
10
15
|
"sideEffects": false,
|
|
11
16
|
"repository": {
|
|
12
17
|
"type": "git",
|
|
@@ -32,14 +37,14 @@
|
|
|
32
37
|
"homepage": "https://github.com/vasturiano/react-globe.gl",
|
|
33
38
|
"scripts": {
|
|
34
39
|
"build": "rimraf dist && rollup -c",
|
|
35
|
-
"dev": "rollup -w -c rollup.config.dev.
|
|
40
|
+
"dev": "rollup -w -c rollup.config.dev.js",
|
|
36
41
|
"prepare": "npm run build"
|
|
37
42
|
},
|
|
38
43
|
"files": [
|
|
39
44
|
"dist/**/*"
|
|
40
45
|
],
|
|
41
46
|
"dependencies": {
|
|
42
|
-
"globe.gl": "^2.
|
|
47
|
+
"globe.gl": "^2.27",
|
|
43
48
|
"prop-types": "^15.8",
|
|
44
49
|
"react-kapsule": "^2.2"
|
|
45
50
|
},
|
|
@@ -47,20 +52,21 @@
|
|
|
47
52
|
"react": "*"
|
|
48
53
|
},
|
|
49
54
|
"devDependencies": {
|
|
50
|
-
"@babel/core": "^7.20.
|
|
51
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
52
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
55
|
+
"@babel/core": "^7.20.12",
|
|
53
56
|
"@babel/preset-env": "^7.20.2",
|
|
54
57
|
"@babel/preset-react": "^7.18.6",
|
|
55
58
|
"@rollup/plugin-babel": "^6.0.3",
|
|
56
|
-
"@rollup/plugin-commonjs": "^24.0.
|
|
59
|
+
"@rollup/plugin-commonjs": "^24.0.1",
|
|
57
60
|
"@rollup/plugin-node-resolve": "^15.0.1",
|
|
58
61
|
"@rollup/plugin-replace": "^5.0.2",
|
|
59
|
-
"@rollup/plugin-terser": "^0.
|
|
60
|
-
"@types/react": "^18.0.
|
|
61
|
-
"rimraf": "^
|
|
62
|
-
"rollup": "^3.
|
|
63
|
-
"rollup-plugin-dts": "^5.1.
|
|
64
|
-
"typescript": "^4.9.
|
|
62
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
63
|
+
"@types/react": "^18.0.27",
|
|
64
|
+
"rimraf": "^4.1.2",
|
|
65
|
+
"rollup": "^3.14.0",
|
|
66
|
+
"rollup-plugin-dts": "^5.1.1",
|
|
67
|
+
"typescript": "^4.9.5"
|
|
68
|
+
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=12"
|
|
65
71
|
}
|
|
66
72
|
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var fromKapsule = require('react-kapsule');
|
|
4
|
-
var GlobeKapsule = require('globe.gl');
|
|
5
|
-
var PropTypes = require('prop-types');
|
|
6
|
-
|
|
7
|
-
var GlobePropTypes = {
|
|
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
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
var Globe = fromKapsule(GlobeKapsule, {
|
|
185
|
-
methodNames: [
|
|
186
|
-
// bind methods
|
|
187
|
-
'pauseAnimation', 'resumeAnimation', 'pointOfView', 'scene', 'camera', 'renderer', 'postProcessingComposer', 'controls', 'getGlobeRadius', 'getCoords', 'getScreenCoords', 'toGeoCoords', 'toGlobeCoords'],
|
|
188
|
-
initPropNames: ['animateIn', 'waitForGlobeReady', 'rendererConfig']
|
|
189
|
-
});
|
|
190
|
-
Globe.displayName = 'Globe';
|
|
191
|
-
Globe.propTypes = GlobePropTypes;
|
|
192
|
-
|
|
193
|
-
module.exports = Globe;
|