Mr.doob 2 anni fa
parent
commit
a8f1684d15
7 ha cambiato i file con 65 aggiunte e 65 eliminazioni
  1. 21 21
      build/three.cjs
  2. 21 21
      build/three.js
  3. 0 0
      build/three.min.js
  4. 21 21
      build/three.module.js
  5. 0 0
      build/three.module.min.js
  6. 1 1
      package-lock.json
  7. 1 1
      package.json

+ 21 - 21
build/three.cjs

@@ -11311,7 +11311,7 @@ class BufferGeometry extends EventDispatcher {
 
 
 const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
 const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
 const _ray$2 = /*@__PURE__*/ new Ray();
 const _ray$2 = /*@__PURE__*/ new Ray();
-const _sphere$5 = /*@__PURE__*/ new Sphere();
+const _sphere$4 = /*@__PURE__*/ new Sphere();
 const _sphereHitAt = /*@__PURE__*/ new Vector3();
 const _sphereHitAt = /*@__PURE__*/ new Vector3();
 
 
 const _vA$1 = /*@__PURE__*/ new Vector3();
 const _vA$1 = /*@__PURE__*/ new Vector3();
@@ -11459,14 +11459,14 @@ class Mesh extends Object3D {
 
 
 		if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 		if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
-		_sphere$5.copy( geometry.boundingSphere );
-		_sphere$5.applyMatrix4( matrixWorld );
+		_sphere$4.copy( geometry.boundingSphere );
+		_sphere$4.applyMatrix4( matrixWorld );
 
 
 		_ray$2.copy( raycaster.ray ).recast( raycaster.near );
 		_ray$2.copy( raycaster.ray ).recast( raycaster.near );
 
 
-		if ( _sphere$5.containsPoint( _ray$2.origin ) === false ) {
+		if ( _sphere$4.containsPoint( _ray$2.origin ) === false ) {
 
 
-			if ( _ray$2.intersectSphere( _sphere$5, _sphereHitAt ) === null ) return;
+			if ( _ray$2.intersectSphere( _sphere$4, _sphereHitAt ) === null ) return;
 
 
 			if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;
 			if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;
 
 
@@ -12951,7 +12951,7 @@ class Plane {
 
 
 }
 }
 
 
-const _sphere$4 = /*@__PURE__*/ new Sphere();
+const _sphere$3 = /*@__PURE__*/ new Sphere();
 const _vector$6 = /*@__PURE__*/ new Vector3();
 const _vector$6 = /*@__PURE__*/ new Vector3();
 
 
 class Frustum {
 class Frustum {
@@ -13017,7 +13017,7 @@ class Frustum {
 
 
 			if ( object.boundingSphere === null ) object.computeBoundingSphere();
 			if ( object.boundingSphere === null ) object.computeBoundingSphere();
 
 
-			_sphere$4.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
+			_sphere$3.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
 
 
 		} else {
 		} else {
 
 
@@ -13025,21 +13025,21 @@ class Frustum {
 
 
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
-			_sphere$4.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
+			_sphere$3.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
 
 
 		}
 		}
 
 
-		return this.intersectsSphere( _sphere$4 );
+		return this.intersectsSphere( _sphere$3 );
 
 
 	}
 	}
 
 
 	intersectsSprite( sprite ) {
 	intersectsSprite( sprite ) {
 
 
-		_sphere$4.center.set( 0, 0, 0 );
-		_sphere$4.radius = 0.7071067811865476;
-		_sphere$4.applyMatrix4( sprite.matrixWorld );
+		_sphere$3.center.set( 0, 0, 0 );
+		_sphere$3.radius = 0.7071067811865476;
+		_sphere$3.applyMatrix4( sprite.matrixWorld );
 
 
-		return this.intersectsSphere( _sphere$4 );
+		return this.intersectsSphere( _sphere$3 );
 
 
 	}
 	}
 
 
@@ -30976,7 +30976,7 @@ const _vector3 = /*@__PURE__*/ new Vector3();
 const _matrix4 = /*@__PURE__*/ new Matrix4();
 const _matrix4 = /*@__PURE__*/ new Matrix4();
 const _vertex = /*@__PURE__*/ new Vector3();
 const _vertex = /*@__PURE__*/ new Vector3();
 
 
-const _sphere$3 = /*@__PURE__*/ new Sphere();
+
 
 
 class SkinnedMesh extends Mesh {
 class SkinnedMesh extends Mesh {
 
 
@@ -31059,18 +31059,18 @@ class SkinnedMesh extends Mesh {
 
 
 	}
 	}
 
 
-	raycast( raycaster, intersects ) {
+	// raycast( raycaster, intersects ) {
 
 
-		if ( this.boundingSphere === null ) this.computeBoundingSphere();
+	// 	if ( this.boundingSphere === null ) this.computeBoundingSphere();
 
 
-		_sphere$3.copy( this.boundingSphere );
-		_sphere$3.applyMatrix4( this.matrixWorld );
+	// 	_sphere.copy( this.boundingSphere );
+	// 	_sphere.applyMatrix4( this.matrixWorld );
 
 
-		if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return;
+	// 	if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;
 
 
-		this._computeIntersections( raycaster, intersects );
+	// 	this._computeIntersections( raycaster, intersects );
 
 
-	}
+	// }
 
 
 	getVertexPosition( index, target ) {
 	getVertexPosition( index, target ) {
 
 

+ 21 - 21
build/three.js

@@ -11316,7 +11316,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 	const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
 	const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
 	const _ray$2 = /*@__PURE__*/ new Ray();
 	const _ray$2 = /*@__PURE__*/ new Ray();
-	const _sphere$5 = /*@__PURE__*/ new Sphere();
+	const _sphere$4 = /*@__PURE__*/ new Sphere();
 	const _sphereHitAt = /*@__PURE__*/ new Vector3();
 	const _sphereHitAt = /*@__PURE__*/ new Vector3();
 
 
 	const _vA$1 = /*@__PURE__*/ new Vector3();
 	const _vA$1 = /*@__PURE__*/ new Vector3();
@@ -11464,14 +11464,14 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
-			_sphere$5.copy( geometry.boundingSphere );
-			_sphere$5.applyMatrix4( matrixWorld );
+			_sphere$4.copy( geometry.boundingSphere );
+			_sphere$4.applyMatrix4( matrixWorld );
 
 
 			_ray$2.copy( raycaster.ray ).recast( raycaster.near );
 			_ray$2.copy( raycaster.ray ).recast( raycaster.near );
 
 
-			if ( _sphere$5.containsPoint( _ray$2.origin ) === false ) {
+			if ( _sphere$4.containsPoint( _ray$2.origin ) === false ) {
 
 
-				if ( _ray$2.intersectSphere( _sphere$5, _sphereHitAt ) === null ) return;
+				if ( _ray$2.intersectSphere( _sphere$4, _sphereHitAt ) === null ) return;
 
 
 				if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;
 				if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;
 
 
@@ -12956,7 +12956,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 	}
 	}
 
 
-	const _sphere$4 = /*@__PURE__*/ new Sphere();
+	const _sphere$3 = /*@__PURE__*/ new Sphere();
 	const _vector$6 = /*@__PURE__*/ new Vector3();
 	const _vector$6 = /*@__PURE__*/ new Vector3();
 
 
 	class Frustum {
 	class Frustum {
@@ -13022,7 +13022,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 				if ( object.boundingSphere === null ) object.computeBoundingSphere();
 				if ( object.boundingSphere === null ) object.computeBoundingSphere();
 
 
-				_sphere$4.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
+				_sphere$3.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
 
 
 			} else {
 			} else {
 
 
@@ -13030,21 +13030,21 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 				if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 				if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
-				_sphere$4.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
+				_sphere$3.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
 
 
 			}
 			}
 
 
-			return this.intersectsSphere( _sphere$4 );
+			return this.intersectsSphere( _sphere$3 );
 
 
 		}
 		}
 
 
 		intersectsSprite( sprite ) {
 		intersectsSprite( sprite ) {
 
 
-			_sphere$4.center.set( 0, 0, 0 );
-			_sphere$4.radius = 0.7071067811865476;
-			_sphere$4.applyMatrix4( sprite.matrixWorld );
+			_sphere$3.center.set( 0, 0, 0 );
+			_sphere$3.radius = 0.7071067811865476;
+			_sphere$3.applyMatrix4( sprite.matrixWorld );
 
 
-			return this.intersectsSphere( _sphere$4 );
+			return this.intersectsSphere( _sphere$3 );
 
 
 		}
 		}
 
 
@@ -30981,7 +30981,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 	const _matrix4 = /*@__PURE__*/ new Matrix4();
 	const _matrix4 = /*@__PURE__*/ new Matrix4();
 	const _vertex = /*@__PURE__*/ new Vector3();
 	const _vertex = /*@__PURE__*/ new Vector3();
 
 
-	const _sphere$3 = /*@__PURE__*/ new Sphere();
+
 
 
 	class SkinnedMesh extends Mesh {
 	class SkinnedMesh extends Mesh {
 
 
@@ -31064,18 +31064,18 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 
 		}
 		}
 
 
-		raycast( raycaster, intersects ) {
+		// raycast( raycaster, intersects ) {
 
 
-			if ( this.boundingSphere === null ) this.computeBoundingSphere();
+		// 	if ( this.boundingSphere === null ) this.computeBoundingSphere();
 
 
-			_sphere$3.copy( this.boundingSphere );
-			_sphere$3.applyMatrix4( this.matrixWorld );
+		// 	_sphere.copy( this.boundingSphere );
+		// 	_sphere.applyMatrix4( this.matrixWorld );
 
 
-			if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return;
+		// 	if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;
 
 
-			this._computeIntersections( raycaster, intersects );
+		// 	this._computeIntersections( raycaster, intersects );
 
 
-		}
+		// }
 
 
 		getVertexPosition( index, target ) {
 		getVertexPosition( index, target ) {
 
 

File diff suppressed because it is too large
+ 0 - 0
build/three.min.js


+ 21 - 21
build/three.module.js

@@ -11309,7 +11309,7 @@ class BufferGeometry extends EventDispatcher {
 
 
 const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
 const _inverseMatrix$2 = /*@__PURE__*/ new Matrix4();
 const _ray$2 = /*@__PURE__*/ new Ray();
 const _ray$2 = /*@__PURE__*/ new Ray();
-const _sphere$5 = /*@__PURE__*/ new Sphere();
+const _sphere$4 = /*@__PURE__*/ new Sphere();
 const _sphereHitAt = /*@__PURE__*/ new Vector3();
 const _sphereHitAt = /*@__PURE__*/ new Vector3();
 
 
 const _vA$1 = /*@__PURE__*/ new Vector3();
 const _vA$1 = /*@__PURE__*/ new Vector3();
@@ -11457,14 +11457,14 @@ class Mesh extends Object3D {
 
 
 		if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 		if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
-		_sphere$5.copy( geometry.boundingSphere );
-		_sphere$5.applyMatrix4( matrixWorld );
+		_sphere$4.copy( geometry.boundingSphere );
+		_sphere$4.applyMatrix4( matrixWorld );
 
 
 		_ray$2.copy( raycaster.ray ).recast( raycaster.near );
 		_ray$2.copy( raycaster.ray ).recast( raycaster.near );
 
 
-		if ( _sphere$5.containsPoint( _ray$2.origin ) === false ) {
+		if ( _sphere$4.containsPoint( _ray$2.origin ) === false ) {
 
 
-			if ( _ray$2.intersectSphere( _sphere$5, _sphereHitAt ) === null ) return;
+			if ( _ray$2.intersectSphere( _sphere$4, _sphereHitAt ) === null ) return;
 
 
 			if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;
 			if ( _ray$2.origin.distanceToSquared( _sphereHitAt ) > ( raycaster.far - raycaster.near ) ** 2 ) return;
 
 
@@ -12949,7 +12949,7 @@ class Plane {
 
 
 }
 }
 
 
-const _sphere$4 = /*@__PURE__*/ new Sphere();
+const _sphere$3 = /*@__PURE__*/ new Sphere();
 const _vector$6 = /*@__PURE__*/ new Vector3();
 const _vector$6 = /*@__PURE__*/ new Vector3();
 
 
 class Frustum {
 class Frustum {
@@ -13015,7 +13015,7 @@ class Frustum {
 
 
 			if ( object.boundingSphere === null ) object.computeBoundingSphere();
 			if ( object.boundingSphere === null ) object.computeBoundingSphere();
 
 
-			_sphere$4.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
+			_sphere$3.copy( object.boundingSphere ).applyMatrix4( object.matrixWorld );
 
 
 		} else {
 		} else {
 
 
@@ -13023,21 +13023,21 @@ class Frustum {
 
 
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 			if ( geometry.boundingSphere === null ) geometry.computeBoundingSphere();
 
 
-			_sphere$4.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
+			_sphere$3.copy( geometry.boundingSphere ).applyMatrix4( object.matrixWorld );
 
 
 		}
 		}
 
 
-		return this.intersectsSphere( _sphere$4 );
+		return this.intersectsSphere( _sphere$3 );
 
 
 	}
 	}
 
 
 	intersectsSprite( sprite ) {
 	intersectsSprite( sprite ) {
 
 
-		_sphere$4.center.set( 0, 0, 0 );
-		_sphere$4.radius = 0.7071067811865476;
-		_sphere$4.applyMatrix4( sprite.matrixWorld );
+		_sphere$3.center.set( 0, 0, 0 );
+		_sphere$3.radius = 0.7071067811865476;
+		_sphere$3.applyMatrix4( sprite.matrixWorld );
 
 
-		return this.intersectsSphere( _sphere$4 );
+		return this.intersectsSphere( _sphere$3 );
 
 
 	}
 	}
 
 
@@ -30974,7 +30974,7 @@ const _vector3 = /*@__PURE__*/ new Vector3();
 const _matrix4 = /*@__PURE__*/ new Matrix4();
 const _matrix4 = /*@__PURE__*/ new Matrix4();
 const _vertex = /*@__PURE__*/ new Vector3();
 const _vertex = /*@__PURE__*/ new Vector3();
 
 
-const _sphere$3 = /*@__PURE__*/ new Sphere();
+
 
 
 class SkinnedMesh extends Mesh {
 class SkinnedMesh extends Mesh {
 
 
@@ -31057,18 +31057,18 @@ class SkinnedMesh extends Mesh {
 
 
 	}
 	}
 
 
-	raycast( raycaster, intersects ) {
+	// raycast( raycaster, intersects ) {
 
 
-		if ( this.boundingSphere === null ) this.computeBoundingSphere();
+	// 	if ( this.boundingSphere === null ) this.computeBoundingSphere();
 
 
-		_sphere$3.copy( this.boundingSphere );
-		_sphere$3.applyMatrix4( this.matrixWorld );
+	// 	_sphere.copy( this.boundingSphere );
+	// 	_sphere.applyMatrix4( this.matrixWorld );
 
 
-		if ( raycaster.ray.intersectsSphere( _sphere$3 ) === false ) return;
+	// 	if ( raycaster.ray.intersectsSphere( _sphere ) === false ) return;
 
 
-		this._computeIntersections( raycaster, intersects );
+	// 	this._computeIntersections( raycaster, intersects );
 
 
-	}
+	// }
 
 
 	getVertexPosition( index, target ) {
 	getVertexPosition( index, target ) {
 
 

File diff suppressed because it is too large
+ 0 - 0
build/three.module.min.js


+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "three",
   "name": "three",
-  "version": "0.152.1",
+  "version": "0.152.2",
   "lockfileVersion": 2,
   "lockfileVersion": 2,
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "three",
   "name": "three",
-  "version": "0.152.1",
+  "version": "0.152.2",
   "description": "JavaScript 3D library",
   "description": "JavaScript 3D library",
   "type": "module",
   "type": "module",
   "main": "./build/three.js",
   "main": "./build/three.js",

Some files were not shown because too many files changed in this diff