浏览代码

Updated builds.

Mugen87 1 年之前
父节点
当前提交
ac901f1bbc
共有 5 个文件被更改,包括 36 次插入96 次删除
  1. 12 32
      build/three.cjs
  2. 12 32
      build/three.js
  3. 0 0
      build/three.min.js
  4. 12 32
      build/three.module.js
  5. 0 0
      build/three.module.min.js

+ 12 - 32
build/three.cjs

@@ -9357,11 +9357,7 @@ class Color {
 
 		this.getHSL( _hslA );
 
-		_hslA.h += h; _hslA.s += s; _hslA.l += l;
-
-		this.setHSL( _hslA.h, _hslA.s, _hslA.l );
-
-		return this;
+		return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
 
 	}
 
@@ -39889,21 +39885,6 @@ class LineDashedMaterial extends LineBasicMaterial {
 
 }
 
-// same as Array.prototype.slice, but also works on typed arrays
-function arraySlice( array, from, to ) {
-
-	if ( isTypedArray( array ) ) {
-
-		// in ios9 array.subarray(from, undefined) will return empty array
-		// but array.subarray(from) or array.subarray(from, len) is correct
-		return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );
-
-	}
-
-	return array.slice( from, to );
-
-}
-
 // converts an array to a specific type
 function convertArray( array, type, forceClone ) {
 
@@ -40167,14 +40148,14 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
 			// Reference frame is earlier than the first keyframe, so just use the first keyframe
 			const startIndex = referenceOffset;
 			const endIndex = referenceValueSize - referenceOffset;
-			referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
+			referenceValue = referenceTrack.values.slice( startIndex, endIndex );
 
 		} else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) {
 
 			// Reference frame is after the last keyframe, so just use the last keyframe
 			const startIndex = lastIndex * referenceValueSize + referenceOffset;
 			const endIndex = startIndex + referenceValueSize - referenceOffset;
-			referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
+			referenceValue = referenceTrack.values.slice( startIndex, endIndex );
 
 		} else {
 
@@ -40183,7 +40164,7 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
 			const startIndex = referenceOffset;
 			const endIndex = referenceValueSize - referenceOffset;
 			interpolant.evaluate( referenceTime );
-			referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
+			referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );
 
 		}
 
@@ -40238,7 +40219,6 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
 }
 
 const AnimationUtils = {
-	arraySlice: arraySlice,
 	convertArray: convertArray,
 	isTypedArray: isTypedArray,
 	getKeyframeOrder: getKeyframeOrder,
@@ -40921,8 +40901,8 @@ class KeyframeTrack {
 			}
 
 			const stride = this.getValueSize();
-			this.times = arraySlice( times, from, to );
-			this.values = arraySlice( this.values, from * stride, to * stride );
+			this.times = times.slice( from, to );
+			this.values = this.values.slice( from * stride, to * stride );
 
 		}
 
@@ -41012,8 +40992,8 @@ class KeyframeTrack {
 	optimize() {
 
 		// times or values may be shared with other tracks, so overwriting is unsafe
-		const times = arraySlice( this.times ),
-			values = arraySlice( this.values ),
+		const times = this.times.slice(),
+			values = this.values.slice(),
 			stride = this.getValueSize(),
 
 			smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
@@ -41106,8 +41086,8 @@ class KeyframeTrack {
 
 		if ( writeIndex !== times.length ) {
 
-			this.times = arraySlice( times, 0, writeIndex );
-			this.values = arraySlice( values, 0, writeIndex * stride );
+			this.times = times.slice( 0, writeIndex );
+			this.values = values.slice( 0, writeIndex * stride );
 
 		} else {
 
@@ -41122,8 +41102,8 @@ class KeyframeTrack {
 
 	clone() {
 
-		const times = arraySlice( this.times, 0 );
-		const values = arraySlice( this.values, 0 );
+		const times = this.times.slice();
+		const values = this.values.slice();
 
 		const TypedKeyframeTrack = this.constructor;
 		const track = new TypedKeyframeTrack( this.name, times, values );

+ 12 - 32
build/three.js

@@ -9362,11 +9362,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 			this.getHSL( _hslA );
 
-			_hslA.h += h; _hslA.s += s; _hslA.l += l;
-
-			this.setHSL( _hslA.h, _hslA.s, _hslA.l );
-
-			return this;
+			return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
 
 		}
 
@@ -39894,21 +39890,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 	}
 
-	// same as Array.prototype.slice, but also works on typed arrays
-	function arraySlice( array, from, to ) {
-
-		if ( isTypedArray( array ) ) {
-
-			// in ios9 array.subarray(from, undefined) will return empty array
-			// but array.subarray(from) or array.subarray(from, len) is correct
-			return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );
-
-		}
-
-		return array.slice( from, to );
-
-	}
-
 	// converts an array to a specific type
 	function convertArray( array, type, forceClone ) {
 
@@ -40172,14 +40153,14 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 				// Reference frame is earlier than the first keyframe, so just use the first keyframe
 				const startIndex = referenceOffset;
 				const endIndex = referenceValueSize - referenceOffset;
-				referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
+				referenceValue = referenceTrack.values.slice( startIndex, endIndex );
 
 			} else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) {
 
 				// Reference frame is after the last keyframe, so just use the last keyframe
 				const startIndex = lastIndex * referenceValueSize + referenceOffset;
 				const endIndex = startIndex + referenceValueSize - referenceOffset;
-				referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
+				referenceValue = referenceTrack.values.slice( startIndex, endIndex );
 
 			} else {
 
@@ -40188,7 +40169,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 				const startIndex = referenceOffset;
 				const endIndex = referenceValueSize - referenceOffset;
 				interpolant.evaluate( referenceTime );
-				referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
+				referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );
 
 			}
 
@@ -40243,7 +40224,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 	}
 
 	const AnimationUtils = {
-		arraySlice: arraySlice,
 		convertArray: convertArray,
 		isTypedArray: isTypedArray,
 		getKeyframeOrder: getKeyframeOrder,
@@ -40926,8 +40906,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 				}
 
 				const stride = this.getValueSize();
-				this.times = arraySlice( times, from, to );
-				this.values = arraySlice( this.values, from * stride, to * stride );
+				this.times = times.slice( from, to );
+				this.values = this.values.slice( from * stride, to * stride );
 
 			}
 
@@ -41017,8 +40997,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 		optimize() {
 
 			// times or values may be shared with other tracks, so overwriting is unsafe
-			const times = arraySlice( this.times ),
-				values = arraySlice( this.values ),
+			const times = this.times.slice(),
+				values = this.values.slice(),
 				stride = this.getValueSize(),
 
 				smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
@@ -41111,8 +41091,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 			if ( writeIndex !== times.length ) {
 
-				this.times = arraySlice( times, 0, writeIndex );
-				this.values = arraySlice( values, 0, writeIndex * stride );
+				this.times = times.slice( 0, writeIndex );
+				this.values = values.slice( 0, writeIndex * stride );
 
 			} else {
 
@@ -41127,8 +41107,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
 
 		clone() {
 
-			const times = arraySlice( this.times, 0 );
-			const values = arraySlice( this.values, 0 );
+			const times = this.times.slice();
+			const values = this.values.slice();
 
 			const TypedKeyframeTrack = this.constructor;
 			const track = new TypedKeyframeTrack( this.name, times, values );

文件差异内容过多而无法显示
+ 0 - 0
build/three.min.js


+ 12 - 32
build/three.module.js

@@ -9355,11 +9355,7 @@ class Color {
 
 		this.getHSL( _hslA );
 
-		_hslA.h += h; _hslA.s += s; _hslA.l += l;
-
-		this.setHSL( _hslA.h, _hslA.s, _hslA.l );
-
-		return this;
+		return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
 
 	}
 
@@ -39887,21 +39883,6 @@ class LineDashedMaterial extends LineBasicMaterial {
 
 }
 
-// same as Array.prototype.slice, but also works on typed arrays
-function arraySlice( array, from, to ) {
-
-	if ( isTypedArray( array ) ) {
-
-		// in ios9 array.subarray(from, undefined) will return empty array
-		// but array.subarray(from) or array.subarray(from, len) is correct
-		return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );
-
-	}
-
-	return array.slice( from, to );
-
-}
-
 // converts an array to a specific type
 function convertArray( array, type, forceClone ) {
 
@@ -40165,14 +40146,14 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
 			// Reference frame is earlier than the first keyframe, so just use the first keyframe
 			const startIndex = referenceOffset;
 			const endIndex = referenceValueSize - referenceOffset;
-			referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
+			referenceValue = referenceTrack.values.slice( startIndex, endIndex );
 
 		} else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) {
 
 			// Reference frame is after the last keyframe, so just use the last keyframe
 			const startIndex = lastIndex * referenceValueSize + referenceOffset;
 			const endIndex = startIndex + referenceValueSize - referenceOffset;
-			referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
+			referenceValue = referenceTrack.values.slice( startIndex, endIndex );
 
 		} else {
 
@@ -40181,7 +40162,7 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
 			const startIndex = referenceOffset;
 			const endIndex = referenceValueSize - referenceOffset;
 			interpolant.evaluate( referenceTime );
-			referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
+			referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );
 
 		}
 
@@ -40236,7 +40217,6 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
 }
 
 const AnimationUtils = {
-	arraySlice: arraySlice,
 	convertArray: convertArray,
 	isTypedArray: isTypedArray,
 	getKeyframeOrder: getKeyframeOrder,
@@ -40919,8 +40899,8 @@ class KeyframeTrack {
 			}
 
 			const stride = this.getValueSize();
-			this.times = arraySlice( times, from, to );
-			this.values = arraySlice( this.values, from * stride, to * stride );
+			this.times = times.slice( from, to );
+			this.values = this.values.slice( from * stride, to * stride );
 
 		}
 
@@ -41010,8 +40990,8 @@ class KeyframeTrack {
 	optimize() {
 
 		// times or values may be shared with other tracks, so overwriting is unsafe
-		const times = arraySlice( this.times ),
-			values = arraySlice( this.values ),
+		const times = this.times.slice(),
+			values = this.values.slice(),
 			stride = this.getValueSize(),
 
 			smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
@@ -41104,8 +41084,8 @@ class KeyframeTrack {
 
 		if ( writeIndex !== times.length ) {
 
-			this.times = arraySlice( times, 0, writeIndex );
-			this.values = arraySlice( values, 0, writeIndex * stride );
+			this.times = times.slice( 0, writeIndex );
+			this.values = values.slice( 0, writeIndex * stride );
 
 		} else {
 
@@ -41120,8 +41100,8 @@ class KeyframeTrack {
 
 	clone() {
 
-		const times = arraySlice( this.times, 0 );
-		const values = arraySlice( this.values, 0 );
+		const times = this.times.slice();
+		const values = this.values.slice();
 
 		const TypedKeyframeTrack = this.constructor;
 		const track = new TypedKeyframeTrack( this.name, times, values );

文件差异内容过多而无法显示
+ 0 - 0
build/three.module.min.js


部分文件因为文件数量过多而无法显示