three-globe
Advanced tools
Comparing version 2.17.2 to 2.17.3
@@ -38,2 +38,3 @@ import { Object3D, Material, Vector2 } from 'three'; | ||
globeMaterial(globeMaterial): ChainableInstance; | ||
onGlobeReady(callback: (() => void)): ChainableInstance; | ||
@@ -253,4 +254,2 @@ // Points layer | ||
// Render options | ||
onGlobeReady(): () => void; | ||
onGlobeReady(readyCallback: (() => void)): ChainableInstance; | ||
rendererSize(): Vector2; | ||
@@ -257,0 +256,0 @@ rendererSize(size: Vector2): ChainableInstance; |
{ | ||
"name": "three-globe", | ||
"version": "2.17.2", | ||
"version": "2.17.3", | ||
"description": "Globe data visualization as a ThreeJS reusable 3D object", | ||
@@ -5,0 +5,0 @@ "unpkg": "dist/three-globe.min.js", |
@@ -74,2 +74,3 @@ ThreeJS Globe Visualization | ||
| <b>globeMaterial</b>([<i>material</i>]) | Getter/setter of the ThreeJS material used to wrap the globe. Can be used for more advanced styling of the globe, like in [this example](https://github.com/vasturiano/three-globe/blob/master/example/custom-material/index.html). | [MeshPhongMaterial](https://threejs.org/docs/#api/en/materials/MeshPhongMaterial) | | ||
| <b>onGlobeReady</b>(<i>fn</i>) | Callback function to invoke immediately after the globe has been initialized and visible on the scene. | - | | ||
@@ -226,3 +227,2 @@ ### Points Layer | ||
| --- | --- | :--: | | ||
| <b>onGlobeReady</b>([<i>fn</i>]) | Getter/setter for callback function to invoke immediately after the globe has been initialized and visible on the scene. | - | | ||
| <b>rendererSize</b>(<i>Vector2</i>) | It's recommended to inject the current [renderer size](https://threejs.org/docs/#api/en/renderers/WebGLRenderer.getSize) to ensure the object proportions remain constant. This is specially necessary when using path FatLines. | Fallback to the full browser window size (`THREE.Vector2(window.innerWidth, window.innerHeight)`) | | ||
@@ -229,0 +229,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
12759566
52627