2
0
ycw 2 жил өмнө
parent
commit
b32a3de755

+ 1 - 1
src/extras/ImageUtils.js

@@ -13,7 +13,7 @@ class ImageUtils {
 
 		}
 
-		if ( typeof HTMLCanvasElement == 'undefined' ) {
+		if ( typeof HTMLCanvasElement === 'undefined' ) {
 
 			return image.src;
 

+ 2 - 2
src/geometries/SphereGeometry.js

@@ -50,11 +50,11 @@ class SphereGeometry extends BufferGeometry {
 
 			let uOffset = 0;
 
-			if ( iy == 0 && thetaStart == 0 ) {
+			if ( iy === 0 && thetaStart === 0 ) {
 
 				uOffset = 0.5 / widthSegments;
 
-			} else if ( iy == heightSegments && thetaEnd == Math.PI ) {
+			} else if ( iy === heightSegments && thetaEnd === Math.PI ) {
 
 				uOffset = - 0.5 / widthSegments;
 

+ 1 - 1
src/math/Box3.js

@@ -201,7 +201,7 @@ class Box3 {
 
 		if ( geometry !== undefined ) {
 
-			if ( precise && geometry.attributes != undefined && geometry.attributes.position !== undefined ) {
+			if ( precise && geometry.attributes !== undefined && geometry.attributes.position !== undefined ) {
 
 				const position = geometry.attributes.position;
 				for ( let i = 0, l = position.count; i < l; i ++ ) {