Bläddra i källkod

intendation adjusted

Rawr 5 år sedan
förälder
incheckning
881645e613

+ 1 - 1
src/animation/AnimationMixer.js

@@ -522,7 +522,7 @@ AnimationMixer.prototype = Object.assign( Object.create( EventDispatcher.prototy
 		const clipUuid = clipObject !== null ? clipObject.uuid : clip;
 
 		const actionsForClip = this._actionsByClip[ clipUuid ];
-		let	prototypeAction = null;
+		let prototypeAction = null;
 
 		if ( blendMode === undefined ) {
 

+ 2 - 2
src/animation/AnimationObjectGroup.js

@@ -314,8 +314,8 @@ Object.assign( AnimationObjectGroup.prototype, {
 		// according to the contained objects in the group
 
 		const indicesByPath = this._bindingsIndicesByPath;
-		let	index = indicesByPath[ path ];
-		const	bindings = this._bindings;
+		let index = indicesByPath[ path ];
+		const bindings = this._bindings;
 
 		if ( index !== undefined ) return bindings[ index ];
 

+ 1 - 1
src/animation/PropertyBinding.js

@@ -446,7 +446,7 @@ Object.assign( PropertyBinding.prototype, { // prototype, continued
 	bind: function () {
 
 		let targetObject = this.node;
-		const	parsedPath = this.parsedPath;
+		const parsedPath = this.parsedPath;
 
 		const	objectName = parsedPath.objectName;
 		const	propertyName = parsedPath.propertyName;

+ 5 - 5
src/cameras/PerspectiveCamera.js

@@ -182,11 +182,11 @@ PerspectiveCamera.prototype = Object.assign( Object.create( Camera.prototype ),
 	updateProjectionMatrix: function () {
 
 		const near = this.near;
-		let	top = near * Math.tan( MathUtils.DEG2RAD * 0.5 * this.fov ) / this.zoom;
-		let	height = 2 * top;
-		let	width = this.aspect * height;
-		let	left = - 0.5 * width;
-		const	view = this.view;
+		let top = near * Math.tan( MathUtils.DEG2RAD * 0.5 * this.fov ) / this.zoom;
+		let height = 2 * top;
+		let width = this.aspect * height;
+		let left = - 0.5 * width;
+		const view = this.view;
 
 		if ( this.view !== null && this.view.enabled ) {
 

+ 2 - 2
src/core/Geometry.js

@@ -641,7 +641,7 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 		}
 
 		let normalMatrix;
-		const	vertexOffset = this.vertices.length,
+		const vertexOffset = this.vertices.length,
 			vertices1 = this.vertices,
 			vertices2 = geometry.vertices,
 			faces1 = this.faces,
@@ -685,7 +685,7 @@ Geometry.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 
 			const face = faces2[ i ];
 			let normal, color;
-			const	faceVertexNormals = face.vertexNormals,
+			const faceVertexNormals = face.vertexNormals,
 				faceVertexColors = face.vertexColors;
 
 			const faceCopy = new Face3( face.a + vertexOffset, face.b + vertexOffset, face.c + vertexOffset );

+ 3 - 3
src/extras/Earcut.js

@@ -9,9 +9,9 @@ const Earcut = {
 		dim = dim || 2;
 
 		const hasHoles = holeIndices && holeIndices.length;
-		const	outerLen = hasHoles ? holeIndices[ 0 ] * dim : data.length;
-		let	outerNode = linkedList( data, 0, outerLen, dim, true );
-		const	triangles = [];
+		const outerLen = hasHoles ? holeIndices[ 0 ] * dim : data.length;
+		let outerNode = linkedList( data, 0, outerLen, dim, true );
+		const triangles = [];
 
 		if ( ! outerNode || outerNode.next === outerNode.prev ) return triangles;
 

+ 1 - 1
src/math/Interpolant.js

@@ -36,7 +36,7 @@ Object.assign( Interpolant.prototype, {
 	evaluate: function ( t ) {
 
 		const pp = this.parameterPositions;
-		let	i1 = this._cachedIndex,
+		let i1 = this._cachedIndex,
 			t1 = pp[ i1 ],
 			t0 = pp[ i1 - 1 ];
 

+ 1 - 1
src/math/Quaternion.js

@@ -34,7 +34,7 @@ Object.assign( Quaternion, {
 		if ( w0 !== w1 || x0 !== x1 || y0 !== y1 || z0 !== z1 ) {
 
 			let s = 1 - t;
-			const	cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1,
+			const cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1,
 				dir = ( cos >= 0 ? 1 : - 1 ),
 				sqrSin = 1 - cos * cos;
 

+ 1 - 1
src/math/interpolants/CubicInterpolant.js

@@ -35,7 +35,7 @@ CubicInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype
 	intervalChanged_: function ( i1, t0, t1 ) {
 
 		const pp = this.parameterPositions;
-		let	iPrev = i1 - 2,
+		let iPrev = i1 - 2,
 			iNext = i1 + 1,
 
 			tPrev = pp[ iPrev ],

+ 1 - 1
src/renderers/webgl/WebGLClipping.js

@@ -113,7 +113,7 @@ function WebGLClipping() {
 	function projectPlanes( planes, camera, dstOffset, skipTransform ) {
 
 		const nPlanes = planes !== null ? planes.length : 0;
-		let	dstArray = null;
+		let dstArray = null;
 
 		if ( nPlanes !== 0 ) {
 

+ 2 - 2
src/renderers/webgl/WebGLUniforms.js

@@ -75,7 +75,7 @@ function flatten( array, nBlocks, blockSize ) {
 	// see http://jacksondunstan.com/articles/983
 
 	const n = nBlocks * blockSize;
-	let	r = arrayCacheF32[ n ];
+	let r = arrayCacheF32[ n ];
 
 	if ( r === undefined ) {
 
@@ -781,7 +781,7 @@ function parseUniform( activeInfo, addr, container ) {
 			matchEnd = RePathPart.lastIndex;
 
 		let id = match[ 1 ];
-		const	idIsIndex = match[ 2 ] === ']',
+		const idIsIndex = match[ 2 ] === ']',
 			subscript = match[ 3 ];
 
 		if ( idIsIndex ) id = id | 0; // convert to integer