Browse Source

Fix lint errors.

Justin Manley 4 years ago
parent
commit
915b7f8aaa
5 changed files with 14 additions and 14 deletions
  1. 3 3
      example/customMaterial.js
  2. 3 3
      example/index.js
  3. 3 3
      example/offscreenShadows.js
  4. 3 3
      example/vr.js
  5. 2 2
      src/three/TilesRenderer.js

+ 3 - 3
example/customMaterial.js

@@ -361,10 +361,10 @@ function animate() {
 		box.getCenter( tiles.group.position );
 		tiles.group.position.multiplyScalar( - 1 );
 
-	} else if ( tiles.getBoundingSphere(sphere) ) {
+	} else if ( tiles.getBoundingSphere( sphere ) ) {
 
-		tiles.group.position.copy(sphere.center);
-		tiles.group.position.multiplyScalar(-1);
+		tiles.group.position.copy( sphere.center );
+		tiles.group.position.multiplyScalar( - 1 );
 
 	}
 

+ 3 - 3
example/index.js

@@ -499,10 +499,10 @@ function animate() {
 		box.getCenter( tiles.group.position );
 		tiles.group.position.multiplyScalar( - 1 );
 
-	} else if ( tiles.getBoundingSphere(sphere) ) {
+	} else if ( tiles.getBoundingSphere( sphere ) ) {
 
-		tiles.group.position.copy(sphere.center);
-		tiles.group.position.multiplyScalar(-1);
+		tiles.group.position.copy( sphere.center );
+		tiles.group.position.multiplyScalar( - 1 );
 
 	}
 

+ 3 - 3
example/offscreenShadows.js

@@ -226,10 +226,10 @@ function animate() {
 		box.getCenter( tiles.group.position );
 		tiles.group.position.multiplyScalar( - 1 );
 
-	} else if ( tiles.getBoundingSphere(sphere) ) {
+	} else if ( tiles.getBoundingSphere( sphere ) ) {
 
-		tiles.group.position.copy(sphere.center);
-		tiles.group.position.multiplyScalar(-1);
+		tiles.group.position.copy( sphere.center );
+		tiles.group.position.multiplyScalar( - 1 );
 
 	}
 

+ 3 - 3
example/vr.js

@@ -229,10 +229,10 @@ function render() {
 		box.getCenter( tiles.group.position );
 		tiles.group.position.multiplyScalar( - 1 );
 
-	} else if ( tiles.getBoundingSphere(sphere) ) {
+	} else if ( tiles.getBoundingSphere( sphere ) ) {
 
-		tiles.group.position.copy(sphere.center);
-		tiles.group.position.multiplyScalar(-1);
+		tiles.group.position.copy( sphere.center );
+		tiles.group.position.multiplyScalar( - 1 );
 
 	}
 

+ 2 - 2
src/three/TilesRenderer.js

@@ -166,8 +166,8 @@ export class TilesRenderer extends TilesRendererBase {
 		}
 
 	}
-	
-	getBoundingSphere(sphere) {
+
+	getBoundingSphere( sphere ) {
 
 		if ( ! this.root ) {