globe.gl 2.32.0 → 2.32.1

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.
@@ -27,9 +27,7 @@
27
27
  globeMaterial.shininess = 15;
28
28
  });
29
29
 
30
- setTimeout(() => { // wait for scene to be populated (asynchronously)
31
- const directionalLight = world.scene().children.find(obj3d => obj3d.type === 'DirectionalLight');
32
- directionalLight && directionalLight.position.set(1, 1, 1); // change light position to see the specularMap's effect
33
- });
30
+ const directionalLight = world.lights().find(light => light.type === 'DirectionalLight');
31
+ directionalLight && directionalLight.position.set(1, 1, 1); // change light position to see the specularMap's effect
34
32
  </script>
35
33
  </body>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "globe.gl",
3
- "version": "2.32.0",
3
+ "version": "2.32.1",
4
4
  "description": "UI component for Globe Data Visualization using ThreeJS/WebGL",
5
5
  "type": "module",
6
6
  "unpkg": "dist/globe.gl.min.js",