react-globe.gl 2.20.2 → 2.21.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.
@@ -151,6 +151,15 @@ var GlobePropTypes = {
151
151
  onLabelClick: PropTypes.func,
152
152
  onLabelRightClick: PropTypes.func,
153
153
  onLabelHover: PropTypes.func,
154
+ objectsData: PropTypes.arrayOf(PropTypes.object),
155
+ objectLat: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
156
+ objectLng: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
157
+ objectAltitude: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.func]),
158
+ objectThreeObject: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
159
+ objectLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
160
+ onObjectClick: PropTypes.func,
161
+ onObjectRightClick: PropTypes.func,
162
+ onObjectHover: PropTypes.func,
154
163
  customLayerData: PropTypes.arrayOf(PropTypes.object),
155
164
  customThreeObject: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func]),
156
165
  customThreeObjectUpdate: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),
@@ -166,7 +175,7 @@ var GlobePropTypes = {
166
175
 
167
176
  var Globe = fromKapsule(GlobeKapsule, {
168
177
  methodNames: [// bind methods
169
- 'pauseAnimation', 'resumeAnimation', 'pointOfView', 'scene', 'camera', 'renderer', 'postProcessingComposer', 'controls', 'getCoords', 'getScreenCoords', 'toGeoCoords', 'toGlobeCoords'],
178
+ 'pauseAnimation', 'resumeAnimation', 'pointOfView', 'scene', 'camera', 'renderer', 'postProcessingComposer', 'controls', 'getGlobeRadius', 'getCoords', 'getScreenCoords', 'toGeoCoords', 'toGlobeCoords'],
170
179
  initPropNames: ['animateIn', 'waitForGlobeReady', 'rendererConfig']
171
180
  });
172
181
  Globe.displayName = 'Globe';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-globe.gl",
3
- "version": "2.20.2",
3
+ "version": "2.21.0",
4
4
  "description": "React component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "license": "MIT",
6
6
  "unpkg": "dist/react-globe.gl.min.js",
@@ -38,7 +38,7 @@
38
38
  "dist/**/*"
39
39
  ],
40
40
  "dependencies": {
41
- "globe.gl": "^2.24",
41
+ "globe.gl": "^2.25",
42
42
  "prop-types": "^15.8",
43
43
  "react-kapsule": "^2.2"
44
44
  },
@@ -46,18 +46,18 @@
46
46
  "react": "*"
47
47
  },
48
48
  "devDependencies": {
49
- "@babel/core": "^7.16.12",
49
+ "@babel/core": "^7.17.5",
50
50
  "@babel/plugin-proposal-class-properties": "^7.16.7",
51
- "@babel/plugin-proposal-object-rest-spread": "^7.16.7",
51
+ "@babel/plugin-proposal-object-rest-spread": "^7.17.3",
52
52
  "@babel/preset-env": "^7.16.11",
53
53
  "@babel/preset-react": "^7.16.7",
54
- "@rollup/plugin-babel": "^5.3.0",
54
+ "@rollup/plugin-babel": "^5.3.1",
55
55
  "@rollup/plugin-commonjs": "^21.0.1",
56
56
  "@rollup/plugin-node-resolve": "^13.1.3",
57
- "@rollup/plugin-replace": "^3.0.1",
58
- "@types/react": "^17.0.38",
57
+ "@rollup/plugin-replace": "^4.0.0",
58
+ "@types/react": "^17.0.39",
59
59
  "rimraf": "^3.0.2",
60
- "rollup": "^2.66.1",
60
+ "rollup": "^2.68.0",
61
61
  "rollup-plugin-dts": "^4.1.0",
62
62
  "rollup-plugin-terser": "^7.0.2",
63
63
  "typescript": "^4.5.5"