2
0
Mr.doob 5 жил өмнө
parent
commit
bc0605c1d0
3 өөрчлөгдсөн 522 нэмэгдсэн , 533 устгасан
  1. 46 56
      build/three.js
  2. 457 458
      build/three.min.js
  3. 19 19
      build/three.module.js

+ 46 - 56
build/three.js

@@ -13167,7 +13167,6 @@
 
 	// BoxGeometry
 
-	var BoxGeometry = /*@__PURE__*/(function (Geometry) {
 		function BoxGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) {
 
 			Geometry.call(this);
@@ -13188,16 +13187,11 @@
 
 		}
 
-		if ( Geometry ) BoxGeometry.__proto__ = Geometry;
-		BoxGeometry.prototype = Object.create( Geometry && Geometry.prototype );
+		BoxGeometry.prototype = Object.create( Geometry.prototype );
 		BoxGeometry.prototype.constructor = BoxGeometry;
 
-		return BoxGeometry;
-	}(Geometry));
-
 	// BoxBufferGeometry
 
-	var BoxBufferGeometry = /*@__PURE__*/(function (BufferGeometry) {
 		function BoxBufferGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) {
 			if ( width === void 0 ) width = 1;
 			if ( height === void 0 ) height = 1;
@@ -13360,13 +13354,9 @@
 
 		}
 
-		if ( BufferGeometry ) BoxBufferGeometry.__proto__ = BufferGeometry;
-		BoxBufferGeometry.prototype = Object.create( BufferGeometry && BufferGeometry.prototype );
+		BoxBufferGeometry.prototype = Object.create( BufferGeometry.prototype );
 		BoxBufferGeometry.prototype.constructor = BoxBufferGeometry;
 
-		return BoxBufferGeometry;
-	}(BufferGeometry));
-
 	/**
 	 * Uniform Utilities
 	 */
@@ -47052,81 +47042,81 @@
 	 * The azimuthal angle (theta) is measured from the positive z-axis.
 	 */
 
-	function Spherical( radius, phi, theta ) {
-
-		this.radius = ( radius !== undefined ) ? radius : 1.0;
-		this.phi = ( phi !== undefined ) ? phi : 0; // polar angle
-		this.theta = ( theta !== undefined ) ? theta : 0; // azimuthal angle
+	var Spherical = function Spherical( radius, phi, theta ) {
+		if ( radius === void 0 ) radius = 1;
+		if ( phi === void 0 ) phi = 0;
+		if ( theta === void 0 ) theta = 0;
 
-		return this;
-
-	}
 
-	Object.assign( Spherical.prototype, {
+		this.radius = radius;
+		this.phi = phi; // polar angle
+		this.theta = theta; // azimuthal angle
 
-		set: function ( radius, phi, theta ) {
+		return this;
 
-			this.radius = radius;
-			this.phi = phi;
-			this.theta = theta;
+	};
 
-			return this;
+	Spherical.prototype.set = function set ( radius, phi, theta ) {
 
-		},
+		this.radius = radius;
+		this.phi = phi;
+		this.theta = theta;
 
-		clone: function () {
+		return this;
 
-			return new this.constructor().copy( this );
+	};
 
-		},
+	Spherical.prototype.clone = function clone () {
 
-		copy: function ( other ) {
+		return new this.constructor().copy( this );
 
-			this.radius = other.radius;
-			this.phi = other.phi;
-			this.theta = other.theta;
+	};
 
-			return this;
+	Spherical.prototype.copy = function copy ( other ) {
 
-		},
+		this.radius = other.radius;
+		this.phi = other.phi;
+		this.theta = other.theta;
 
-		// restrict phi to be betwee EPS and PI-EPS
-		makeSafe: function () {
+		return this;
 
-			var EPS = 0.000001;
-			this.phi = Math.max( EPS, Math.min( Math.PI - EPS, this.phi ) );
+	};
 
-			return this;
+	// restrict phi to be betwee EPS and PI-EPS
+	Spherical.prototype.makeSafe = function makeSafe () {
 
-		},
+		var EPS = 0.000001;
+		this.phi = Math.max( EPS, Math.min( Math.PI - EPS, this.phi ) );
 
-		setFromVector3: function ( v ) {
+		return this;
 
-			return this.setFromCartesianCoords( v.x, v.y, v.z );
+	};
 
-		},
+	Spherical.prototype.setFromVector3 = function setFromVector3 ( v ) {
 
-		setFromCartesianCoords: function ( x, y, z ) {
+		return this.setFromCartesianCoords( v.x, v.y, v.z );
 
-			this.radius = Math.sqrt( x * x + y * y + z * z );
+	};
 
-			if ( this.radius === 0 ) {
+	Spherical.prototype.setFromCartesianCoords = function setFromCartesianCoords ( x, y, z ) {
 
-				this.theta = 0;
-				this.phi = 0;
+		this.radius = Math.sqrt( x * x + y * y + z * z );
 
-			} else {
+		if ( this.radius === 0 ) {
 
-				this.theta = Math.atan2( x, z );
-				this.phi = Math.acos( MathUtils.clamp( y / this.radius, - 1, 1 ) );
+			this.theta = 0;
+			this.phi = 0;
 
-			}
+		} else {
 
-			return this;
+			this.theta = Math.atan2( x, z );
+			this.phi = Math.acos( MathUtils.clamp( y / this.radius, - 1, 1 ) );
 
 		}
 
-	} );
+		return this;
+
+	};
 
 	/**
 	 * @author Mugen87 / https://github.com/Mugen87

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 457 - 458
build/three.min.js


+ 19 - 19
build/three.module.js

@@ -47048,19 +47048,19 @@ Object.assign( Raycaster.prototype, {
  * The azimuthal angle (theta) is measured from the positive z-axis.
  */
 
-function Spherical( radius, phi, theta ) {
+class Spherical {
 
-	this.radius = ( radius !== undefined ) ? radius : 1.0;
-	this.phi = ( phi !== undefined ) ? phi : 0; // polar angle
-	this.theta = ( theta !== undefined ) ? theta : 0; // azimuthal angle
+	constructor( radius = 1, phi = 0, theta = 0 ) {
 
-	return this;
+		this.radius = radius;
+		this.phi = phi; // polar angle
+		this.theta = theta; // azimuthal angle
 
-}
+		return this;
 
-Object.assign( Spherical.prototype, {
+	}
 
-	set: function ( radius, phi, theta ) {
+	set( radius, phi, theta ) {
 
 		this.radius = radius;
 		this.phi = phi;
@@ -47068,15 +47068,15 @@ Object.assign( Spherical.prototype, {
 
 		return this;
 
-	},
+	}
 
-	clone: function () {
+	clone() {
 
 		return new this.constructor().copy( this );
 
-	},
+	}
 
-	copy: function ( other ) {
+	copy( other ) {
 
 		this.radius = other.radius;
 		this.phi = other.phi;
@@ -47084,25 +47084,25 @@ Object.assign( Spherical.prototype, {
 
 		return this;
 
-	},
+	}
 
 	// restrict phi to be betwee EPS and PI-EPS
-	makeSafe: function () {
+	makeSafe() {
 
 		const EPS = 0.000001;
 		this.phi = Math.max( EPS, Math.min( Math.PI - EPS, this.phi ) );
 
 		return this;
 
-	},
+	}
 
-	setFromVector3: function ( v ) {
+	setFromVector3( v ) {
 
 		return this.setFromCartesianCoords( v.x, v.y, v.z );
 
-	},
+	}
 
-	setFromCartesianCoords: function ( x, y, z ) {
+	setFromCartesianCoords( x, y, z ) {
 
 		this.radius = Math.sqrt( x * x + y * y + z * z );
 
@@ -47122,7 +47122,7 @@ Object.assign( Spherical.prototype, {
 
 	}
 
-} );
+}
 
 /**
  * @author Mugen87 / https://github.com/Mugen87

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно