فهرست منبع

Examples: Clean up.

Mugen87 5 سال پیش
والد
کامیت
b14fce14a7
97فایلهای تغییر یافته به همراه717 افزوده شده و 100 حذف شده
  1. 10 0
      examples/js/controls/TransformControls.js
  2. 3 0
      examples/js/curves/NURBSUtils.js
  3. 1 0
      examples/js/effects/AsciiEffect.js
  4. 1 0
      examples/js/effects/PeppersGhostEffect.js
  5. 2 2
      examples/js/exporters/ColladaExporter.js
  6. 1 1
      examples/js/exporters/GLTFExporter.js
  7. 1 0
      examples/js/geometries/TeapotBufferGeometry.js
  8. 1 0
      examples/js/loaders/3MFLoader.js
  9. 1 0
      examples/js/loaders/AMFLoader.js
  10. 19 4
      examples/js/loaders/AssimpLoader.js
  11. 1 0
      examples/js/loaders/BVHLoader.js
  12. 4 0
      examples/js/loaders/ColladaLoader.js
  13. 1 0
      examples/js/loaders/DDSLoader.js
  14. 1 0
      examples/js/loaders/EXRLoader.js
  15. 5 0
      examples/js/loaders/FBXLoader.js
  16. 5 0
      examples/js/loaders/KTXLoader.js
  17. 13 1
      examples/js/loaders/LDrawLoader.js
  18. 1 0
      examples/js/loaders/LWOLoader.js
  19. 18 0
      examples/js/loaders/NRRDLoader.js
  20. 3 0
      examples/js/loaders/OBJLoader.js
  21. 1 0
      examples/js/loaders/PCDLoader.js
  22. 8 0
      examples/js/loaders/RGBELoader.js
  23. 23 2
      examples/js/loaders/SVGLoader.js
  24. 4 0
      examples/js/loaders/TGALoader.js
  25. 13 0
      examples/js/loaders/VRMLLoader.js
  26. 3 0
      examples/js/loaders/VTKLoader.js
  27. 73 0
      examples/js/loaders/XLoader.js
  28. 19 1
      examples/js/math/SimplexNoise.js
  29. 2 0
      examples/js/misc/ConvexObjectBreaker.js
  30. 3 0
      examples/js/misc/GPUComputationRenderer.js
  31. 5 0
      examples/js/misc/Ocean.js
  32. 2 0
      examples/js/misc/Volume.js
  33. 1 0
      examples/js/misc/VolumeSlice.js
  34. 7 0
      examples/js/objects/Fire.js
  35. 10 0
      examples/js/postprocessing/AdaptiveToneMappingPass.js
  36. 1 1
      examples/js/renderers/CSS3DRenderer.js
  37. 4 4
      examples/js/shaders/ACESFilmicToneMappingShader.js
  38. 2 2
      examples/js/utils/BufferGeometryUtils.js
  39. 10 0
      examples/jsm/controls/TransformControls.js
  40. 2 0
      examples/jsm/csm/CSM.js
  41. 1 0
      examples/jsm/csm/Frustum.js
  42. 3 0
      examples/jsm/curves/NURBSUtils.js
  43. 1 0
      examples/jsm/effects/AsciiEffect.js
  44. 1 0
      examples/jsm/effects/PeppersGhostEffect.js
  45. 2 2
      examples/jsm/exporters/ColladaExporter.js
  46. 1 1
      examples/jsm/exporters/GLTFExporter.js
  47. 1 0
      examples/jsm/geometries/TeapotBufferGeometry.js
  48. 1 2
      examples/jsm/lines/LineMaterial.d.ts
  49. 1 0
      examples/jsm/loaders/3MFLoader.js
  50. 1 0
      examples/jsm/loaders/AMFLoader.js
  51. 19 4
      examples/jsm/loaders/AssimpLoader.js
  52. 1 0
      examples/jsm/loaders/BVHLoader.js
  53. 4 0
      examples/jsm/loaders/ColladaLoader.js
  54. 1 0
      examples/jsm/loaders/DDSLoader.js
  55. 1 0
      examples/jsm/loaders/EXRLoader.js
  56. 5 0
      examples/jsm/loaders/FBXLoader.js
  57. 5 0
      examples/jsm/loaders/KTXLoader.js
  58. 13 1
      examples/jsm/loaders/LDrawLoader.js
  59. 1 0
      examples/jsm/loaders/LWOLoader.js
  60. 18 0
      examples/jsm/loaders/NRRDLoader.js
  61. 3 0
      examples/jsm/loaders/OBJLoader.js
  62. 12 0
      examples/jsm/loaders/OBJLoader2.js
  63. 11 1
      examples/jsm/loaders/OBJLoader2Parallel.js
  64. 1 0
      examples/jsm/loaders/PCDLoader.js
  65. 8 0
      examples/jsm/loaders/RGBELoader.js
  66. 23 2
      examples/jsm/loaders/SVGLoader.js
  67. 4 0
      examples/jsm/loaders/TGALoader.js
  68. 13 0
      examples/jsm/loaders/VRMLLoader.js
  69. 3 0
      examples/jsm/loaders/VTKLoader.js
  70. 73 0
      examples/jsm/loaders/XLoader.js
  71. 26 0
      examples/jsm/loaders/obj2/OBJLoader2Parser.js
  72. 2 0
      examples/jsm/loaders/obj2/bridge/MtlObjBridge.js
  73. 13 0
      examples/jsm/loaders/obj2/shared/MaterialHandler.js
  74. 14 0
      examples/jsm/loaders/obj2/shared/MeshReceiver.js
  75. 13 0
      examples/jsm/loaders/obj2/utils/CodeSerializer.js
  76. 18 0
      examples/jsm/loaders/obj2/worker/main/WorkerExecutionSupport.js
  77. 4 0
      examples/jsm/loaders/obj2/worker/parallel/WorkerRunner.js
  78. 19 1
      examples/jsm/math/SimplexNoise.js
  79. 2 0
      examples/jsm/misc/ConvexObjectBreaker.js
  80. 3 0
      examples/jsm/misc/GPUComputationRenderer.js
  81. 5 0
      examples/jsm/misc/Ocean.js
  82. 2 0
      examples/jsm/misc/Volume.js
  83. 1 0
      examples/jsm/misc/VolumeSlice.js
  84. 1 0
      examples/jsm/nodes/materials/nodes/PhongNode.js
  85. 7 0
      examples/jsm/objects/Fire.js
  86. 10 0
      examples/jsm/postprocessing/AdaptiveToneMappingPass.js
  87. 1 1
      examples/jsm/renderers/CSS3DRenderer.js
  88. 4 4
      examples/jsm/shaders/ACESFilmicToneMappingShader.js
  89. 2 2
      examples/jsm/utils/BufferGeometryUtils.js
  90. 4 0
      examples/jsm/utils/GeometryCompressionUtils.js
  91. 38 59
      package-lock.json
  92. 2 2
      package.json
  93. 2 0
      src/Three.Legacy.js
  94. 1 0
      src/core/Object3D.js
  95. 3 0
      src/extras/core/ShapePath.js
  96. 1 0
      src/loaders/DataTextureLoader.js
  97. 2 0
      src/textures/Texture.js

+ 10 - 0
examples/js/controls/TransformControls.js

@@ -472,11 +472,13 @@ THREE.TransformControls = function ( camera, domElement ) {
 					_tempVector2.x = 1;
 
 				}
+
 				if ( axis.search( 'Y' ) === - 1 ) {
 
 					_tempVector2.y = 1;
 
 				}
+
 				if ( axis.search( 'Z' ) === - 1 ) {
 
 					_tempVector2.z = 1;
@@ -1078,11 +1080,13 @@ THREE.TransformControlsGizmo = function () {
 					object.position.set( position[ 0 ], position[ 1 ], position[ 2 ] );
 
 				}
+
 				if ( rotation ) {
 
 					object.rotation.set( rotation[ 0 ], rotation[ 1 ], rotation[ 2 ] );
 
 				}
+
 				if ( scale ) {
 
 					object.scale.set( scale[ 0 ], scale[ 1 ], scale[ 2 ] );
@@ -1333,6 +1337,7 @@ THREE.TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'Y' || handle.name === 'XYZY' ) {
 
 					if ( Math.abs( alignVector.copy( unitY ).applyQuaternion( quaternion ).dot( this.eye ) ) > AXIS_HIDE_TRESHOLD ) {
@@ -1343,6 +1348,7 @@ THREE.TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'Z' || handle.name === 'XYZZ' ) {
 
 					if ( Math.abs( alignVector.copy( unitZ ).applyQuaternion( quaternion ).dot( this.eye ) ) > AXIS_HIDE_TRESHOLD ) {
@@ -1353,6 +1359,7 @@ THREE.TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'XY' ) {
 
 					if ( Math.abs( alignVector.copy( unitZ ).applyQuaternion( quaternion ).dot( this.eye ) ) < PLANE_HIDE_TRESHOLD ) {
@@ -1363,6 +1370,7 @@ THREE.TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'YZ' ) {
 
 					if ( Math.abs( alignVector.copy( unitX ).applyQuaternion( quaternion ).dot( this.eye ) ) < PLANE_HIDE_TRESHOLD ) {
@@ -1373,6 +1381,7 @@ THREE.TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'XZ' ) {
 
 					if ( Math.abs( alignVector.copy( unitY ).applyQuaternion( quaternion ).dot( this.eye ) ) < PLANE_HIDE_TRESHOLD ) {
@@ -1623,6 +1632,7 @@ THREE.TransformControlsPlane = function () {
 						break;
 
 				}
+
 				break;
 			case 'rotate':
 			default:

+ 3 - 0
examples/js/curves/NURBSUtils.js

@@ -209,6 +209,7 @@ THREE.NURBSUtils = {
 				a[ i ] = zeroArr.slice( 0 );
 
 			}
+
 			a[ 0 ][ 0 ] = 1.0;
 
 			for ( var k = 1; k <= n; ++ k ) {
@@ -260,6 +261,7 @@ THREE.NURBSUtils = {
 				ders[ k ][ j ] *= r;
 
 			}
+
 			r *= p - k;
 
 		}
@@ -300,6 +302,7 @@ THREE.NURBSUtils = {
 			Pw[ i ] = point;
 
 		}
+
 		for ( var k = 0; k <= du; ++ k ) {
 
 			var point = Pw[ span - p ].clone().multiplyScalar( nders[ k ][ 0 ] );

+ 1 - 0
examples/js/effects/AsciiEffect.js

@@ -272,6 +272,7 @@ THREE.AsciiEffect = function ( renderer, charSet, options ) {
 				}
 
 			}
+
 			strChars += "<br/>";
 
 		}

+ 1 - 0
examples/js/effects/PeppersGhostEffect.js

@@ -40,6 +40,7 @@ THREE.PeppersGhostEffect = function ( renderer ) {
 			_height = height / 3;
 
 		}
+
 		renderer.setSize( width, height );
 
 	};

+ 2 - 2
examples/js/exporters/ColladaExporter.js

@@ -571,8 +571,8 @@ THREE.ColladaExporter.prototype = {
 					matidsArray = new Array( materials.length );
 
 				}
-				matids = matidsArray.fill()
-					.map( ( v, i ) => processMaterial( materials[ i % materials.length ] ) );
+
+				matids = matidsArray.fill().map( ( v, i ) => processMaterial( materials[ i % materials.length ] ) );
 
 				node +=
 					`<instance_geometry url="#${ meshid }">` +

+ 1 - 1
examples/js/exporters/GLTFExporter.js

@@ -705,7 +705,7 @@ THREE.GLTFExporter.prototype = {
 			if ( attribute.normalized === true ) {
 
 				gltfAccessor.normalized = true;
-				
+
 			}
 
 			if ( ! outputJSON.accessors ) {

+ 1 - 0
examples/js/geometries/TeapotBufferGeometry.js

@@ -682,6 +682,7 @@ THREE.TeapotBufferGeometry = function ( size, segments, bottom, lid, body, fitLi
 						indices[ indexCount ++ ] = v3;
 
 					}
+
 					if ( notDegenerate( v1, v3, v4 ) ) {
 
 						indices[ indexCount ++ ] = v1;

+ 1 - 0
examples/js/loaders/3MFLoader.js

@@ -1068,6 +1068,7 @@ THREE.ThreeMFLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
 							meshes.push( newMeshes[ j ] );
 
 						}
+
 						break;
 
 					case 'texture':

+ 1 - 0
examples/js/loaders/AMFLoader.js

@@ -289,6 +289,7 @@ THREE.AMFLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 					}
 
 				}
+
 				currVerticesNode = currVerticesNode.nextElementSibling;
 
 			}

+ 19 - 4
examples/js/loaders/AssimpLoader.js

@@ -51,6 +51,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				return n;
 
 			};
+
 			this.lerp = function ( nextKey, time ) {
 
 				time -= this.time;
@@ -94,6 +95,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				this.keys.push( key );
 
 			};
+
 			this.init = function () {
 
 				this.sortKeys();
@@ -137,6 +139,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 					this.addKey( new Virtulous.KeyFrame( i / fps || track[ i ].time, track[ i ].targets[ 0 ].data ) );
 
 				}
+
 				this.init();
 
 			};
@@ -498,6 +501,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			}
 
 		}
+
 		function cloneTreeToBones( root, scene ) {
 
 			var rootBone = new THREE.Bone();
@@ -655,6 +659,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 					}
 
 				}
+
 				var skeleton = new THREE.Skeleton( allBones, offsetMatrix );
 
 				this.threeNode.bind( skeleton, new THREE.Matrix4() );
@@ -957,6 +962,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			};
 
 		}
+
 		var namePropMapping = {
 
 			"?mat.name": "name",
@@ -1749,6 +1755,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// write faces. There are no floating-point calculations involved
 			// in these, so we can write a simple hash over the face data
 			// to the dump file. We generate a single 32 Bit hash for 512 faces
@@ -1814,6 +1821,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// write bones
 			if ( mesh.mNumBones ) {
 
@@ -1876,7 +1884,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryNodeAnim( stream, nd ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -1942,7 +1950,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryAnim( stream, anim ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -1996,7 +2004,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryLight( stream, l ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -2026,7 +2034,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryCamera( stream, cam ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -2073,6 +2081,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// Read materials
 			if ( scene.mNumMaterials ) {
 
@@ -2086,6 +2095,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// Read all animations
 			if ( scene.mNumAnimations ) {
 
@@ -2099,6 +2109,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// Read all textures
 			if ( scene.mNumTextures ) {
 
@@ -2112,6 +2123,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// Read lights
 			if ( scene.mNumLights ) {
 
@@ -2125,6 +2137,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 				}
 
 			}
+
 			// Read cameras
 			if ( scene.mNumCameras ) {
 
@@ -2140,6 +2153,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 			}
 
 		}
+
 		var aiOrigin_CUR = 0;
 		var aiOrigin_BEG = 1;
 
@@ -2153,6 +2167,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
 					stream.readOffset += off;
 
 				}
+
 				if ( ori == aiOrigin_BEG ) {
 
 					stream.readOffset = off;

+ 1 - 0
examples/js/loaders/BVHLoader.js

@@ -382,6 +382,7 @@ THREE.BVHLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 			var line;
 			// skip empty lines
 			while ( ( line = lines.shift().trim() ).length === 0 ) { }
+
 			return line;
 
 		}

+ 4 - 0
examples/js/loaders/ColladaLoader.js

@@ -2056,6 +2056,7 @@ THREE.ColladaLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
 							data.stride = parseInt( accessor.getAttribute( 'stride' ) );
 
 						}
+
 						break;
 
 				}
@@ -2328,6 +2329,7 @@ THREE.ColladaLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
 											}
 
 										}
+
 										break;
 
 									case 'NORMAL':
@@ -2356,6 +2358,7 @@ THREE.ColladaLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
 								}
 
 							}
+
 							break;
 
 						case 'NORMAL':
@@ -3664,6 +3667,7 @@ THREE.ColladaLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
 							object = new THREE.Mesh( geometry.data, material );
 
 						}
+
 						break;
 
 				}

+ 1 - 0
examples/js/loaders/DDSLoader.js

@@ -96,6 +96,7 @@ THREE.DDSLoader.prototype = Object.assign( Object.create( THREE.CompressedTextur
 				}
 
 			}
+
 			return byteArray;
 
 		}

+ 1 - 0
examples/js/loaders/EXRLoader.js

@@ -132,6 +132,7 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade
 				bits = ( ( tmpDataView.getUint32( 0 ) >>> 20 ) & 0x7FF ) - 64;
 
 			}
+
 			var exponent = bits - 1022;
 			var mantissa = ldexp( value, - exponent );
 

+ 5 - 0
examples/js/loaders/FBXLoader.js

@@ -488,6 +488,7 @@ THREE.FBXLoader = ( function () {
 				parameters.bumpScale = materialNode.BumpFactor.value;
 
 			}
+
 			if ( materialNode.Diffuse ) {
 
 				parameters.color = new THREE.Color().fromArray( materialNode.Diffuse.value );
@@ -2689,12 +2690,14 @@ THREE.FBXLoader = ( function () {
 				curves.x.values = curves.x.values.map( THREE.MathUtils.degToRad );
 
 			}
+
 			if ( curves.y !== undefined ) {
 
 				this.interpolateRotations( curves.y );
 				curves.y.values = curves.y.values.map( THREE.MathUtils.degToRad );
 
 			}
+
 			if ( curves.z !== undefined ) {
 
 				this.interpolateRotations( curves.z );
@@ -3867,12 +3870,14 @@ THREE.FBXLoader = ( function () {
 
 		var versionRegExp = /FBXVersion: (\d+)/;
 		var match = text.match( versionRegExp );
+
 		if ( match ) {
 
 			var version = parseInt( match[ 1 ] );
 			return version;
 
 		}
+
 		throw new Error( 'THREE.FBXLoader: Cannot find the version number for the file given.' );
 
 	}

+ 5 - 0
examples/js/loaders/KTXLoader.js

@@ -100,24 +100,28 @@ var KhronosTextureContainer = ( function () {
 			this.numberOfMipmapLevels = Math.max( 1, this.numberOfMipmapLevels );
 
 		}
+
 		if ( this.pixelHeight === 0 || this.pixelDepth !== 0 ) {
 
 			console.warn( 'only 2D textures currently supported' );
 			return;
 
 		}
+
 		if ( this.numberOfArrayElements !== 0 ) {
 
 			console.warn( 'texture arrays not currently supported' );
 			return;
 
 		}
+
 		if ( this.numberOfFaces !== facesExpected ) {
 
 			console.warn( 'number of faces expected' + facesExpected + ', but found ' + this.numberOfFaces );
 			return;
 
 		}
+
 		// we now have a completely validated file, so could use existence of loadType as success
 		// would need to make this more elaborate & adjust checks above to support more than one load type
 		this.loadType = KhronosTextureContainer.COMPRESSED_2D;
@@ -150,6 +154,7 @@ var KhronosTextureContainer = ( function () {
 				dataOffset += 3 - ( ( imageSize + 3 ) % 4 ); // add padding for odd sized image
 
 			}
+
 			width = Math.max( 1.0, width * 0.5 );
 			height = Math.max( 1.0, height * 0.5 );
 

+ 13 - 1
examples/js/loaders/LDrawLoader.js

@@ -825,6 +825,7 @@ THREE.LDrawLoader = ( function () {
 							throw 'LDrawLoader: Invalid colour while parsing material' + lineParser.getLineNumberString() + ".";
 
 						}
+
 						break;
 
 					case "EDGE":
@@ -848,6 +849,7 @@ THREE.LDrawLoader = ( function () {
 							edgeMaterial = edgeMaterial.userData.edgeMaterial;
 
 						}
+
 						break;
 
 					case 'ALPHA':
@@ -1084,6 +1086,7 @@ THREE.LDrawLoader = ( function () {
 					colourCode = mainColourCode;
 
 				}
+
 				if ( forEdge && colourCode === '24' ) {
 
 					colourCode = mainEdgeColourCode;
@@ -1219,6 +1222,7 @@ THREE.LDrawLoader = ( function () {
 										console.warn( 'LDrawLoader: Error parsing material' + lp.getLineNumberString() );
 
 									}
+
 									break;
 
 								case '!CATEGORY':
@@ -1244,6 +1248,7 @@ THREE.LDrawLoader = ( function () {
 										} );
 
 									}
+
 									break;
 
 								case 'FILE':
@@ -1696,8 +1701,8 @@ THREE.LDrawLoader = ( function () {
 				var isRoot = ! parentParseScope.isFromParse;
 				if ( scope.separateObjects && ! isPrimitiveType( parseScope.type ) || isRoot ) {
 
-
 					const objGroup = parseScope.groupObject;
+
 					if ( parseScope.triangles.length > 0 ) {
 
 						objGroup.add( createObject( parseScope.triangles, 3 ) );
@@ -1741,12 +1746,14 @@ THREE.LDrawLoader = ( function () {
 					for ( var i = 0, l = lineSegments.length; i < l; i ++ ) {
 
 						var ls = lineSegments[ i ];
+
 						if ( separateObjects ) {
 
 							ls.v0.applyMatrix4( parseScope.matrix );
 							ls.v1.applyMatrix4( parseScope.matrix );
 
 						}
+
 						parentLineSegments.push( ls );
 
 					}
@@ -1754,6 +1761,7 @@ THREE.LDrawLoader = ( function () {
 					for ( var i = 0, l = conditionalSegments.length; i < l; i ++ ) {
 
 						var os = conditionalSegments[ i ];
+
 						if ( separateObjects ) {
 
 							os.v0.applyMatrix4( parseScope.matrix );
@@ -1762,6 +1770,7 @@ THREE.LDrawLoader = ( function () {
 							os.c1.applyMatrix4( parseScope.matrix );
 
 						}
+
 						parentConditionalSegments.push( os );
 
 					}
@@ -1769,6 +1778,7 @@ THREE.LDrawLoader = ( function () {
 					for ( var i = 0, l = triangles.length; i < l; i ++ ) {
 
 						var tri = triangles[ i ];
+
 						if ( separateObjects ) {
 
 							tri.v0 = tri.v0.clone().applyMatrix4( parseScope.matrix );
@@ -1780,6 +1790,7 @@ THREE.LDrawLoader = ( function () {
 							tri.faceNormal.crossVectors( tempVec0, tempVec1 ).normalize();
 
 						}
+
 						parentTriangles.push( tri );
 
 					}
@@ -1872,6 +1883,7 @@ THREE.LDrawLoader = ( function () {
 							newLocationState = LDrawLoader.FILE_LOCATION_AS_IS;
 
 						}
+
 						break;
 
 					case LDrawLoader.FILE_LOCATION_NOT_FOUND:

+ 1 - 0
examples/js/loaders/LWOLoader.js

@@ -1015,6 +1015,7 @@ IFFParser.prototype = {
 					this.parseClip( length );
 
 				}
+
 				break;
 
 			case 'STIL':

+ 18 - 0
examples/js/loaders/NRRDLoader.js

@@ -169,16 +169,19 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 				}
 
 			}
+
 			if ( ! headerObject.isNrrd ) {
 
 				throw new Error( 'Not an NRRD file' );
 
 			}
+
 			if ( headerObject.encoding === 'bz2' || headerObject.encoding === 'bzip2' ) {
 
 				throw new Error( 'Bzip is not supported' );
 
 			}
+
 			if ( ! headerObject.vectors ) {
 
 				//if no space direction is set, let's use the identity
@@ -231,6 +234,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 				parsingFunction = parseFloat;
 
 			}
+
 			for ( var i = start; i < end; i ++ ) {
 
 				value = data[ i ];
@@ -247,17 +251,20 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 						resultIndex ++;
 
 					}
+
 					number = '';
 
 				}
 
 			}
+
 			if ( number !== '' ) {
 
 				result[ resultIndex ] = parsingFunction( number, base );
 				resultIndex ++;
 
 			}
+
 			return result;
 
 		}
@@ -281,6 +288,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 			}
 
 		}
+
 		// parse the header
 		parseHeader( _header );
 
@@ -310,6 +318,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 			_data = _copy;
 
 		}
+
 		// .. let's use the underlying array buffer
 		_data = _data.buffer;
 
@@ -392,6 +401,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 			volume.lowerThreshold = min;
 
 		}
+
 		if ( volume.upperThreshold === Infinity ) {
 
 			volume.upperThreshold = max;
@@ -410,6 +420,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 			start = 0;
 
 		}
+
 		if ( end === undefined ) {
 
 			end = array.length;
@@ -514,12 +525,14 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 				var _i, _len, _ref, _results;
 				_ref = data.split( /\s+/ );
 				_results = [];
+
 				for ( _i = 0, _len = _ref.length; _i < _len; _i ++ ) {
 
 					i = _ref[ _i ];
 					_results.push( parseInt( i, 10 ) );
 
 				}
+
 				return _results;
 
 			} )();
@@ -546,6 +559,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 
 				var _i, _len, _results;
 				_results = [];
+
 				for ( _i = 0, _len = parts.length; _i < _len; _i ++ ) {
 
 					v = parts[ _i ];
@@ -554,17 +568,20 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 						var _j, _len2, _ref, _results2;
 						_ref = v.slice( 1, - 1 ).split( /,/ );
 						_results2 = [];
+
 						for ( _j = 0, _len2 = _ref.length; _j < _len2; _j ++ ) {
 
 							f = _ref[ _j ];
 							_results2.push( parseFloat( f ) );
 
 						}
+
 						return _results2;
 
 					} )() );
 
 				}
+
 				return _results;
 
 			} )();
@@ -585,6 +602,7 @@ THREE.NRRDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototyp
 					_results.push( parseFloat( f ) );
 
 				}
+
 				return _results;
 
 			} )();

+ 3 - 0
examples/js/loaders/OBJLoader.js

@@ -462,6 +462,7 @@ THREE.OBJLoader = ( function () {
 								);
 
 							}
+
 							break;
 						case 'vn':
 							state.normals.push(
@@ -538,6 +539,7 @@ THREE.OBJLoader = ( function () {
 						}
 
 					}
+
 					state.addLineGeometry( lineVertices, lineUVs );
 
 				} else if ( lineFirstChar === 'p' ) {
@@ -613,6 +615,7 @@ THREE.OBJLoader = ( function () {
 						state.object.smooth = true;
 
 					}
+
 					var material = state.object.currentMaterial();
 					if ( material ) material.smooth = state.object.smooth;
 

+ 1 - 0
examples/js/loaders/PCDLoader.js

@@ -87,6 +87,7 @@ THREE.PCDLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						if ( inPtr >= inLength ) throw new Error( 'Invalid compressed data' );
 
 					}
+
 					ref -= inData[ inPtr ++ ];
 					if ( outPtr + len + 2 > outLength ) throw new Error( 'Output buffer is not large enough' );
 					if ( ref < 0 ) throw new Error( 'Invalid compressed data' );

+ 8 - 0
examples/js/loaders/RGBELoader.js

@@ -45,6 +45,7 @@ THREE.RGBELoader.prototype = Object.assign( Object.create( THREE.DataTextureLoad
 					case rgbe_memory_error: console.error( "THREE.RGBELoader: Error: " + ( msg || '' ) );
 
 				}
+
 				return RGBE_RETURN_FAILURE;
 
 			},
@@ -91,6 +92,7 @@ THREE.RGBELoader.prototype = Object.assign( Object.create( THREE.DataTextureLoad
 					return s + chunk.slice( 0, i );
 
 				}
+
 				return false;
 
 			},
@@ -133,12 +135,14 @@ THREE.RGBELoader.prototype = Object.assign( Object.create( THREE.DataTextureLoad
 					return rgbe_error( rgbe_read_error, "no header found" );
 
 				}
+
 				/* if you want to require the magic token then uncomment the next line */
 				if ( ! ( match = line.match( magic_token_re ) ) ) {
 
 					return rgbe_error( rgbe_format_error, "bad initial token" );
 
 				}
+
 				header.valid |= RGBE_VALID_PROGRAMTYPE;
 				header.programtype = match[ 1 ];
 				header.string += line + "\n";
@@ -161,17 +165,20 @@ THREE.RGBELoader.prototype = Object.assign( Object.create( THREE.DataTextureLoad
 						header.gamma = parseFloat( match[ 1 ], 10 );
 
 					}
+
 					if ( match = line.match( exposure_re ) ) {
 
 						header.exposure = parseFloat( match[ 1 ], 10 );
 
 					}
+
 					if ( match = line.match( format_re ) ) {
 
 						header.valid |= RGBE_VALID_FORMAT;
 						header.format = match[ 1 ];//'32-bit_rle_rgbe';
 
 					}
+
 					if ( match = line.match( dimensions_re ) ) {
 
 						header.valid |= RGBE_VALID_DIMENSIONS;
@@ -189,6 +196,7 @@ THREE.RGBELoader.prototype = Object.assign( Object.create( THREE.DataTextureLoad
 					return rgbe_error( rgbe_format_error, "missing format specifier" );
 
 				}
+
 				if ( ! ( header.valid & RGBE_VALID_DIMENSIONS ) ) {
 
 					return rgbe_error( rgbe_format_error, "missing image size specifier" );

+ 23 - 2
examples/js/loaders/SVGLoader.js

@@ -196,6 +196,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'H':
@@ -211,6 +212,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'V':
@@ -226,6 +228,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'L':
@@ -242,6 +245,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'C':
@@ -265,6 +269,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'S':
@@ -288,6 +293,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'Q':
@@ -309,6 +315,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'T':
@@ -332,6 +339,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'A':
@@ -351,6 +359,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'm':
@@ -376,6 +385,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'h':
@@ -391,6 +401,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'v':
@@ -406,6 +417,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'l':
@@ -422,6 +434,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'c':
@@ -445,6 +458,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 's':
@@ -468,6 +482,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'q':
@@ -489,6 +504,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 't':
@@ -512,6 +528,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'a':
@@ -531,6 +548,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'Z':
@@ -545,6 +563,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 							isFirstPoint = true;
 
 						}
+
 						break;
 
 					default:
@@ -564,7 +583,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 
 		function parseCSSStylesheet( node ) {
 
-			if ( !node.sheet || !node.sheet.cssRules || !node.sheet.cssRules.length ) return;
+			if ( ! node.sheet || ! node.sheet.cssRules || ! node.sheet.cssRules.length ) return;
 
 			for ( var i = 0; i < node.sheet.cssRules.length; i ++ ) {
 
@@ -585,7 +604,7 @@ THREE.SVGLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 					);
 
 				}
-				
+
 			}
 
 		}
@@ -1494,6 +1513,7 @@ THREE.SVGLoader.pointsToStrokeWithBuffers = function () {
 					joinIsOnLeftSide = false;
 
 				}
+
 				if ( iPoint === 1 ) initialJoinIsOnLeftSide = joinIsOnLeftSide;
 
 				tempV2_3.subVectors( nextPoint, currentPoint );
@@ -1521,6 +1541,7 @@ THREE.SVGLoader.pointsToStrokeWithBuffers = function () {
 						innerSideModified = true;
 
 					}
+
 					outerPoint.copy( tempV2_5 ).add( currentPoint );
 					innerPoint.add( currentPoint );
 

+ 4 - 0
examples/js/loaders/TGALoader.js

@@ -58,6 +58,7 @@ THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						console.error( 'THREE.TGALoader: Invalid type colormap data for indexed type.' );
 
 					}
+
 					break;
 
 					// check colormap type
@@ -71,6 +72,7 @@ THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						console.error( 'THREE.TGALoader: Invalid type colormap data for colormap type.' );
 
 					}
+
 					break;
 
 					// What the need of a file without data ?
@@ -166,11 +168,13 @@ THREE.TGALoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						// raw pixels
 
 						count *= pixel_size;
+
 						for ( i = 0; i < count; ++ i ) {
 
 							pixel_data[ shift + i ] = data[ offset ++ ];
 
 						}
+
 						shift += count;
 
 					}

+ 13 - 0
examples/js/loaders/VRMLLoader.js

@@ -903,6 +903,7 @@ THREE.VRMLLoader = ( function () {
 								material = getNode( fieldValues[ 0 ] );
 
 							}
+
 							break;
 
 						case 'geometry':
@@ -911,6 +912,7 @@ THREE.VRMLLoader = ( function () {
 								geometry = getNode( fieldValues[ 0 ] );
 
 							}
+
 							break;
 
 						default:
@@ -1043,6 +1045,7 @@ THREE.VRMLLoader = ( function () {
 								material = new THREE.MeshBasicMaterial( { color: 0x000000 } );
 
 							}
+
 							break;
 
 						case 'texture':
@@ -1060,6 +1063,7 @@ THREE.VRMLLoader = ( function () {
 								}
 
 							}
+
 							break;
 
 						case 'textureTransform':
@@ -1068,6 +1072,7 @@ THREE.VRMLLoader = ( function () {
 								transformData = getNode( fieldValues[ 0 ] );
 
 							}
+
 							break;
 
 						default:
@@ -1459,6 +1464,7 @@ THREE.VRMLLoader = ( function () {
 								color = getNode( colorNode );
 
 							}
+
 							break;
 
 						case 'coord':
@@ -1469,6 +1475,7 @@ THREE.VRMLLoader = ( function () {
 								coord = getNode( coordNode );
 
 							}
+
 							break;
 
 						case 'normal':
@@ -1479,6 +1486,7 @@ THREE.VRMLLoader = ( function () {
 								normal = getNode( normalNode );
 
 							}
+
 							break;
 
 						case 'texCoord':
@@ -1489,6 +1497,7 @@ THREE.VRMLLoader = ( function () {
 								texCoord = getNode( texCoordNode );
 
 							}
+
 							break;
 
 						case 'ccw':
@@ -1715,6 +1724,7 @@ THREE.VRMLLoader = ( function () {
 								color = getNode( colorNode );
 
 							}
+
 							break;
 
 						case 'coord':
@@ -1725,6 +1735,7 @@ THREE.VRMLLoader = ( function () {
 								coord = getNode( coordNode );
 
 							}
+
 							break;
 
 						case 'colorIndex':
@@ -1834,6 +1845,7 @@ THREE.VRMLLoader = ( function () {
 								color = getNode( colorNode );
 
 							}
+
 							break;
 
 						case 'coord':
@@ -1844,6 +1856,7 @@ THREE.VRMLLoader = ( function () {
 								coord = getNode( coordNode );
 
 							}
+
 							break;
 
 

+ 3 - 0
examples/js/loaders/VTKLoader.js

@@ -390,6 +390,7 @@ THREE.VTKLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						pointIndex = pointIndex + 12;
 
 					}
+
 					// increment our next pointer
 					state.next = state.next + count + 1;
 
@@ -438,6 +439,7 @@ THREE.VTKLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						}
 
 					}
+
 					// increment our next pointer
 					state.next = state.next + count + 1;
 
@@ -475,6 +477,7 @@ THREE.VTKLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
 						}
 
 					}
+
 					// increment our next pointer
 					state.next = state.next + count + 1;
 

+ 73 - 0
examples/js/loaders/XLoader.js

@@ -83,11 +83,13 @@ THREE.XLoader = ( function () {
 				this.putFlags.putPos = true;
 
 			}
+
 			if ( this.putFlags.putRot === undefined ) {
 
 				this.putFlags.putRot = true;
 
 			}
+
 			if ( this.putFlags.putScl === undefined ) {
 
 				this.putFlags.putScl = true;
@@ -105,6 +107,7 @@ THREE.XLoader = ( function () {
 					this.hierarchy.push( this.makeBonekeys( XAnimationInfoArray[ i ] ) );
 
 				}
+
 				this.length = this.hierarchy[ 0 ].keys[ this.hierarchy[ 0 ].keys.length - 1 ].time;
 
 			}
@@ -128,6 +131,7 @@ THREE.XLoader = ( function () {
 					return Object.assign( {}, this );
 
 				};
+
 				return refObj;
 
 			}
@@ -145,16 +149,19 @@ THREE.XLoader = ( function () {
 						keyframe.pos = XAnimationInfo.keyFrames[ i ].pos;
 
 					}
+
 					if ( XAnimationInfo.keyFrames[ i ].rot && this.putFlags.putRot ) {
 
 						keyframe.rot = XAnimationInfo.keyFrames[ i ].rot;
 
 					}
+
 					if ( XAnimationInfo.keyFrames[ i ].scl && this.putFlags.putScl ) {
 
 						keyframe.scl = XAnimationInfo.keyFrames[ i ].scl;
 
 					}
+
 					if ( XAnimationInfo.keyFrames[ i ].matrix ) {
 
 						keyframe.matrix = XAnimationInfo.keyFrames[ i ].matrix;
@@ -163,11 +170,13 @@ THREE.XLoader = ( function () {
 							keyframe.pos = new THREE.Vector3().setFromMatrixPosition( keyframe.matrix );
 
 						}
+
 						if ( this.putFlags.putRot ) {
 
 							keyframe.rot = new THREE.Quaternion().setFromRotationMatrix( keyframe.matrix );
 
 						}
+
 						if ( this.putFlags.putScl ) {
 
 							keyframe.scl = new THREE.Vector3().setFromMatrixScale( keyframe.matrix );
@@ -175,9 +184,11 @@ THREE.XLoader = ( function () {
 						}
 
 					}
+
 					keys.push( keyframe );
 
 				}
+
 				return keys;
 
 			}
@@ -239,6 +250,7 @@ THREE.XLoader = ( function () {
 					return;
 
 				}
+
 				for ( var i = _start; i < _arg.length; i ++ ) {
 
 					switch ( i ) {
@@ -253,6 +265,7 @@ THREE.XLoader = ( function () {
 					}
 
 				}
+
 				if ( this.options === undefined ) {
 
 					this.options = {};
@@ -291,6 +304,7 @@ THREE.XLoader = ( function () {
 						find = line.indexOf( '#', readed );
 
 					}
+
 					if ( find > - 1 && find < 2 ) {
 
 						var foundNewLine = - 1;
@@ -321,6 +335,7 @@ THREE.XLoader = ( function () {
 					}
 
 				}
+
 				return line.substr( readed );
 
 			}
@@ -338,6 +353,7 @@ THREE.XLoader = ( function () {
 						find = line.indexOf( '#', readed );
 
 					}
+
 					if ( find > - 1 && find < 2 ) {
 
 						var foundNewLine = - 1;
@@ -368,6 +384,7 @@ THREE.XLoader = ( function () {
 					}
 
 				}
+
 				return line.substr( readed );
 
 			}
@@ -384,6 +401,7 @@ THREE.XLoader = ( function () {
 					return true;
 
 				}
+
 				var fileLength = reader.byteLength;
 				for ( var index = 0; index < fileLength; index ++ ) {
 
@@ -394,6 +412,7 @@ THREE.XLoader = ( function () {
 					}
 
 				}
+
 				return false;
 
 			}
@@ -409,6 +428,7 @@ THREE.XLoader = ( function () {
 						array_buffer[ i ] = buf.charCodeAt( i ) & 0xff;
 
 					}
+
 					return array_buffer.buffer || array_buffer;
 
 				} else {
@@ -515,6 +535,7 @@ THREE.XLoader = ( function () {
 							_currentObject.type = "";
 
 						}
+
 						if ( _currentObject.type === "Animation" ) {
 
 							_currentObject.data = this._data.substr( findNext, findEnd - findNext ).trim();
@@ -540,6 +561,7 @@ THREE.XLoader = ( function () {
 							}
 
 						}
+
 						_currentObject.parent = _parent;
 						if ( _currentObject.type != "template" ) {
 
@@ -555,6 +577,7 @@ THREE.XLoader = ( function () {
 					}
 
 				}
+
 				return {
 					parent: _parent,
 					end: endRead
@@ -664,6 +687,7 @@ THREE.XLoader = ( function () {
 									this._currentAnime.AnimeFrames.push( this._currentAnimeFrames );
 
 								}
+
 								this._currentAnimeFrames = new XAnimationInfo();
 								this._currentAnimeFrames.boneName = this._currentObject.data.trim();
 								break;
@@ -673,9 +697,11 @@ THREE.XLoader = ( function () {
 								break;
 
 						}
+
 						this._currentObject.worked = true;
 
 					}
+
 					if ( this._currentObject.children.length > 0 ) {
 
 						this._currentObject = this._currentObject.children.shift();
@@ -684,6 +710,7 @@ THREE.XLoader = ( function () {
 							console.log( 'processing ' + this._currentObject.name );
 
 						}
+
 						if ( breakFlag ) break;
 
 					} else {
@@ -697,6 +724,7 @@ THREE.XLoader = ( function () {
 							}
 
 						}
+
 						if ( this._currentObject.parent ) {
 
 							this._currentObject = this._currentObject.parent;
@@ -706,11 +734,13 @@ THREE.XLoader = ( function () {
 							breakFlag = true;
 
 						}
+
 						if ( breakFlag ) break;
 
 					}
 
 				}
+
 				return;
 
 			}
@@ -723,6 +753,7 @@ THREE.XLoader = ( function () {
 					this._makeOutputGeometry();
 
 				}
+
 				this._currentGeo = {};
 				if ( this._currentAnime != null && this._currentAnime.name ) {
 
@@ -732,9 +763,11 @@ THREE.XLoader = ( function () {
 						this._currentAnimeFrames = null;
 
 					}
+
 					this._makeOutputAnimation();
 
 				}
+
 				this._currentAnime = {};
 
 			}
@@ -774,6 +807,7 @@ THREE.XLoader = ( function () {
 					this._currentFrame.parentName = this._currentObject.parent.name;
 
 				}
+
 				this.frameHierarchie.push( this._nowFrameName );
 				this.HieStack[ this._nowFrameName ] = this._currentFrame;
 
@@ -797,6 +831,7 @@ THREE.XLoader = ( function () {
 					return;
 
 				}
+
 				var b = new THREE.Bone();
 				b.name = this._currentFrame.name;
 				b.applyMatrix4( this._currentFrame.FrameTransformMatrix );
@@ -854,6 +889,7 @@ THREE.XLoader = ( function () {
 								break;
 
 						}
+
 						if ( find === 0 || find > maxLength ) {
 
 							find = maxLength;
@@ -861,6 +897,7 @@ THREE.XLoader = ( function () {
 							changeMode = true;
 
 						}
+
 						switch ( this._currentObject.type ) {
 
 							case "Mesh":
@@ -874,6 +911,7 @@ THREE.XLoader = ( function () {
 										break;
 
 								}
+
 								break;
 							case "MeshNormals":
 								switch ( mode ) {
@@ -883,9 +921,11 @@ THREE.XLoader = ( function () {
 										break;
 
 								}
+
 								break;
 
 						}
+
 						endRead = find + 1;
 						if ( changeMode ) {
 
@@ -894,6 +934,7 @@ THREE.XLoader = ( function () {
 						}
 
 					}
+
 					if ( endRead >= this._currentObject.data.length ) {
 
 						break;
@@ -1053,6 +1094,7 @@ THREE.XLoader = ( function () {
 									mode_local = 0;
 
 								}
+
 								var line = this._currentObject.data.substr( endRead, find - endRead );
 								var data = this._readLine( line.trim() ).split( ";" );
 								if ( this.IsUvYReverse ) {
@@ -1064,12 +1106,15 @@ THREE.XLoader = ( function () {
 									this._currentGeo.GeometryData.uvs.push( parseFloat( data[ 0 ] ), parseFloat( data[ 1 ] ) );
 
 								}
+
 								endRead = find + 1;
 
 							}
+
 							break;
 
 					}
+
 					if ( endRead >= this._currentObject.data.length ) {
 
 						break;
@@ -1104,6 +1149,7 @@ THREE.XLoader = ( function () {
 							mode_local = 0;
 
 						}
+
 						var line = this._currentObject.data.substr( endRead, find - endRead );
 						var data = this._readLine( line.trim() ).split( "," );
 						for ( var i = 0; i < data.length; i ++ ) {
@@ -1111,9 +1157,11 @@ THREE.XLoader = ( function () {
 							this._currentGeo.GeometryData.materialIndices[ i ] = parseInt( data[ i ] );
 
 						}
+
 						endRead = this._currentObject.data.length;
 
 					}
+
 					if ( endRead >= this._currentObject.data.length || mode >= 3 ) {
 
 						break;
@@ -1157,6 +1205,7 @@ THREE.XLoader = ( function () {
 					find = this._currentObject.data.length;
 
 				}
+
 				line = this._currentObject.data.substr( endRead, find - endRead );
 				var data3 = this._readLine( line.trim() ).split( ";" );
 				_nowMat.emissive.r = parseFloat( data3[ 0 ] );
@@ -1173,6 +1222,7 @@ THREE.XLoader = ( function () {
 							console.log( 'processing ' + localObject.name );
 
 						}
+
 						var fileName = localObject.data.substr( 1, localObject.data.length - 2 );
 						switch ( localObject.type ) {
 
@@ -1203,6 +1253,7 @@ THREE.XLoader = ( function () {
 					}
 
 				}
+
 				this._currentGeo.Materials.push( _nowMat );
 
 			}
@@ -1227,6 +1278,7 @@ THREE.XLoader = ( function () {
 					boneInf.Indeces.push( parseInt( data[ i ] ) );
 
 				}
+
 				endRead = find + 1;
 				find = this._currentObject.data.indexOf( ';', endRead );
 				line = this._currentObject.data.substr( endRead, find - endRead );
@@ -1236,6 +1288,7 @@ THREE.XLoader = ( function () {
 					boneInf.Weights.push( parseFloat( data2[ _i ] ) );
 
 				}
+
 				endRead = find + 1;
 				find = this._currentObject.data.indexOf( ';', endRead );
 				if ( find <= 0 ) {
@@ -1243,6 +1296,7 @@ THREE.XLoader = ( function () {
 					find = this._currentObject.data.length;
 
 				}
+
 				line = this._currentObject.data.substr( endRead, find - endRead );
 				var data3 = this._readLine( line.trim() ).split( "," );
 				boneInf.OffsetMatrix = new THREE.Matrix4();
@@ -1283,6 +1337,7 @@ THREE.XLoader = ( function () {
 							}
 
 						}
+
 						_bones.push( b );
 
 					}
@@ -1314,6 +1369,7 @@ THREE.XLoader = ( function () {
 							}
 
 						}
+
 						for ( var vi = 0; vi < this._currentGeo.BoneInfs[ bi ].Indeces.length; vi ++ ) {
 
 							var nowVertexID = this._currentGeo.BoneInfs[ bi ].Indeces[ vi ];
@@ -1341,6 +1397,7 @@ THREE.XLoader = ( function () {
 									break;
 
 							}
+
 							this._currentGeo.VertexSetedBoneCount[ nowVertexID ] ++;
 							if ( this._currentGeo.VertexSetedBoneCount[ nowVertexID ] > 4 ) {
 
@@ -1351,11 +1408,13 @@ THREE.XLoader = ( function () {
 						}
 
 					}
+
 					for ( var sk = 0; sk < this._currentGeo.Materials.length; sk ++ ) {
 
 						this._currentGeo.Materials[ sk ].skinning = true;
 
 					}
+
 					var offsetList = [];
 					for ( var _bi = 0; _bi < putBones.length; _bi ++ ) {
 
@@ -1382,6 +1441,7 @@ THREE.XLoader = ( function () {
 					mesh = new THREE.Mesh( _bufferGeometry, this._currentGeo.Materials.length === 1 ? this._currentGeo.Materials[ 0 ] : this._currentGeo.Materials );
 
 				}
+
 				mesh.name = this._currentGeo.name;
 				var worldBaseMx = new THREE.Matrix4();
 				var currentMxFrame = this._currentGeo.baseFrame.putBone;
@@ -1401,9 +1461,11 @@ THREE.XLoader = ( function () {
 						}
 
 					}
+
 					mesh.applyMatrix4( worldBaseMx );
 
 				}
+
 				this.Meshes.push( mesh );
 
 			}
@@ -1486,6 +1548,7 @@ THREE.XLoader = ( function () {
 							}
 
 						}
+
 						var frameValue = data2[ 2 ].split( "," );
 						switch ( nowKeyType ) {
 
@@ -1500,6 +1563,7 @@ THREE.XLoader = ( function () {
 								break;
 
 						}
+
 						if ( ! frameFound ) {
 
 							this._currentAnimeFrames.keyFrames.push( keyInfo );
@@ -1539,16 +1603,19 @@ THREE.XLoader = ( function () {
 					model = this.Meshes[ 0 ];
 
 				}
+
 				if ( ! animation ) {
 
 					animation = this.animations[ 0 ];
 
 				}
+
 				if ( ! model || ! animation ) {
 
 					return null;
 
 				}
+
 				var put = {};
 				put.fps = animation.fps;
 				put.name = animation.name;
@@ -1578,12 +1645,14 @@ THREE.XLoader = ( function () {
 								}
 
 							}
+
 							put.hierarchy.push( c_key );
 							break;
 
 						}
 
 					}
+
 					if ( ! findAnimation ) {
 
 						var _c_key = animation.hierarchy[ 0 ].copy();
@@ -1596,11 +1665,13 @@ THREE.XLoader = ( function () {
 								_c_key.keys[ k ].pos.set( 0, 0, 0 );
 
 							}
+
 							if ( _c_key.keys[ k ].scl ) {
 
 								_c_key.keys[ k ].scl.set( 1, 1, 1 );
 
 							}
+
 							if ( _c_key.keys[ k ].rot ) {
 
 								_c_key.keys[ k ].rot.set( 0, 0, 0, 1 );
@@ -1608,11 +1679,13 @@ THREE.XLoader = ( function () {
 							}
 
 						}
+
 						put.hierarchy.push( _c_key );
 
 					}
 
 				}
+
 				if ( ! model.geometry.animations ) {
 
 					model.geometry.animations = [];

+ 19 - 1
examples/js/math/SimplexNoise.js

@@ -28,13 +28,16 @@ THREE.SimplexNoise = function ( r ) {
 	     [ - 1, 1, 1, 0 ], [ - 1, 1, - 1, 0 ], [ - 1, - 1, 1, 0 ], [ - 1, - 1, - 1, 0 ]];
 
 	this.p = [];
+
 	for ( var i = 0; i < 256; i ++ ) {
 
 		this.p[ i ] = Math.floor( r.random() * 256 );
 
 	}
+
 	// To remove the need for index wrapping, double the permutation table length
 	this.perm = [];
+
 	for ( var i = 0; i < 512; i ++ ) {
 
 		this.perm[ i ] = this.p[ i & 255 ];
@@ -101,6 +104,7 @@ THREE.SimplexNoise.prototype.noise = function ( xin, yin ) {
 		i1 = 0; j1 = 1;
 
 	} // upper triangle, YX order: (0,0)->(0,1)->(1,1)
+
 	// A step of (1,0) in (i,j) means a step of (1-c,-c) in (x,y), and
 	// a step of (0,1) in (i,j) means a step of (-c,1-c) in (x,y), where
 	// c = (3-sqrt(3))/6
@@ -123,6 +127,7 @@ THREE.SimplexNoise.prototype.noise = function ( xin, yin ) {
 		n0 = t0 * t0 * this.dot( this.grad3[ gi0 ], x0, y0 ); // (x,y) of grad3 used for 2D gradient
 
 	}
+
 	var t1 = 0.5 - x1 * x1 - y1 * y1;
 	if ( t1 < 0 ) n1 = 0.0;
 	else {
@@ -131,6 +136,7 @@ THREE.SimplexNoise.prototype.noise = function ( xin, yin ) {
 		n1 = t1 * t1 * this.dot( this.grad3[ gi1 ], x1, y1 );
 
 	}
+
 	var t2 = 0.5 - x2 * x2 - y2 * y2;
 	if ( t2 < 0 ) n2 = 0.0;
 	else {
@@ -139,6 +145,7 @@ THREE.SimplexNoise.prototype.noise = function ( xin, yin ) {
 		n2 = t2 * t2 * this.dot( this.grad3[ gi2 ], x2, y2 );
 
 	}
+
 	// Add contributions from each corner to get the final noise value.
 	// The result is scaled to return values in the interval [-1,1].
 	return 70.0 * ( n0 + n1 + n2 );
@@ -208,6 +215,7 @@ THREE.SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		} // Y X Z order
 
 	}
+
 	// A step of (1,0,0) in (i,j,k) means a step of (1-c,-c,-c) in (x,y,z),
 	// a step of (0,1,0) in (i,j,k) means a step of (-c,1-c,-c) in (x,y,z), and
 	// a step of (0,0,1) in (i,j,k) means a step of (-c,-c,1-c) in (x,y,z), where
@@ -238,6 +246,7 @@ THREE.SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n0 = t0 * t0 * this.dot3( this.grad3[ gi0 ], x0, y0, z0 );
 
 	}
+
 	var t1 = 0.6 - x1 * x1 - y1 * y1 - z1 * z1;
 	if ( t1 < 0 ) n1 = 0.0;
 	else {
@@ -246,6 +255,7 @@ THREE.SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n1 = t1 * t1 * this.dot3( this.grad3[ gi1 ], x1, y1, z1 );
 
 	}
+
 	var t2 = 0.6 - x2 * x2 - y2 * y2 - z2 * z2;
 	if ( t2 < 0 ) n2 = 0.0;
 	else {
@@ -254,6 +264,7 @@ THREE.SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n2 = t2 * t2 * this.dot3( this.grad3[ gi2 ], x2, y2, z2 );
 
 	}
+
 	var t3 = 0.6 - x3 * x3 - y3 * y3 - z3 * z3;
 	if ( t3 < 0 ) n3 = 0.0;
 	else {
@@ -262,6 +273,7 @@ THREE.SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n3 = t3 * t3 * this.dot3( this.grad3[ gi3 ], x3, y3, z3 );
 
 	}
+
 	// Add contributions from each corner to get the final noise value.
 	// The result is scaled to stay just inside [-1,1]
 	return 32.0 * ( n0 + n1 + n2 + n3 );
@@ -368,6 +380,7 @@ THREE.SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n0 = t0 * t0 * this.dot4( grad4[ gi0 ], x0, y0, z0, w0 );
 
 	}
+
 	var t1 = 0.6 - x1 * x1 - y1 * y1 - z1 * z1 - w1 * w1;
 	if ( t1 < 0 ) n1 = 0.0;
 	else {
@@ -376,6 +389,7 @@ THREE.SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n1 = t1 * t1 * this.dot4( grad4[ gi1 ], x1, y1, z1, w1 );
 
 	}
+
 	var t2 = 0.6 - x2 * x2 - y2 * y2 - z2 * z2 - w2 * w2;
 	if ( t2 < 0 ) n2 = 0.0;
 	else {
@@ -383,7 +397,9 @@ THREE.SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		t2 *= t2;
 		n2 = t2 * t2 * this.dot4( grad4[ gi2 ], x2, y2, z2, w2 );
 
-	} var t3 = 0.6 - x3 * x3 - y3 * y3 - z3 * z3 - w3 * w3;
+	}
+
+	var t3 = 0.6 - x3 * x3 - y3 * y3 - z3 * z3 - w3 * w3;
 	if ( t3 < 0 ) n3 = 0.0;
 	else {
 
@@ -391,6 +407,7 @@ THREE.SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n3 = t3 * t3 * this.dot4( grad4[ gi3 ], x3, y3, z3, w3 );
 
 	}
+
 	var t4 = 0.6 - x4 * x4 - y4 * y4 - z4 * z4 - w4 * w4;
 	if ( t4 < 0 ) n4 = 0.0;
 	else {
@@ -399,6 +416,7 @@ THREE.SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n4 = t4 * t4 * this.dot4( grad4[ gi4 ], x4, y4, z4, w4 );
 
 	}
+
 	// Sum up and scale the result to cover the range [-1,1]
 	return 27.0 * ( n0 + n1 + n2 + n3 + n4 );
 

+ 2 - 0
examples/js/misc/ConvexObjectBreaker.js

@@ -388,6 +388,7 @@ THREE.ConvexObjectBreaker.prototype = {
 				radius1 = Math.max( radius1, p.x, p.y, p.z );
 
 			}
+
 			this.tempCM1.add( object.position );
 
 		}
@@ -407,6 +408,7 @@ THREE.ConvexObjectBreaker.prototype = {
 				radius2 = Math.max( radius2, p.x, p.y, p.z );
 
 			}
+
 			this.tempCM2.add( object.position );
 
 		}

+ 3 - 0
examples/js/misc/GPUComputationRenderer.js

@@ -174,6 +174,7 @@ THREE.GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
 			// Adds dependencies uniforms to the ShaderMaterial
 			var material = variable.material;
 			var uniforms = material.uniforms;
+
 			if ( variable.dependencies !== null ) {
 
 				for ( var d = 0; d < variable.dependencies.length; d ++ ) {
@@ -194,6 +195,7 @@ THREE.GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
 							}
 
 						}
+
 						if ( ! found ) {
 
 							return "Variable dependency not found. Variable=" + variable.name + ", dependency=" + depVar.name;
@@ -267,6 +269,7 @@ THREE.GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
 		materialShader.defines.resolution = 'vec2( ' + sizeX.toFixed( 1 ) + ', ' + sizeY.toFixed( 1 ) + " )";
 
 	}
+
 	this.addResolutionDefine = addResolutionDefine;
 
 

+ 5 - 0
examples/js/misc/Ocean.js

@@ -22,6 +22,7 @@ THREE.Ocean = function ( renderer, camera, scene, options ) {
 		return value !== undefined ? value : defaultValue;
 
 	}
+
 	options = options || {};
 	this.clearColor = optionalParameter( options.CLEAR_COLOR, [ 1.0, 1.0, 1.0, 0.0 ] );
 	this.geometryOrigin = optionalParameter( options.GEOMETRY_ORIGIN, [ - 1000.0, - 1000.0 ] );
@@ -274,6 +275,7 @@ THREE.Ocean.prototype.renderWavePhase = function () {
 
 	this.scene.overrideMaterial = this.materialPhase;
 	this.screenQuad.material = this.materialPhase;
+
 	if ( this.initial ) {
 
 		this.materialPhase.uniforms.u_phases.value = this.pingPhaseTexture;
@@ -284,6 +286,7 @@ THREE.Ocean.prototype.renderWavePhase = function () {
 		this.materialPhase.uniforms.u_phases.value = this.pingPhase ? this.pingPhaseFramebuffer.texture : this.pongPhaseFramebuffer.texture;
 
 	}
+
 	this.materialPhase.uniforms.u_deltaTime.value = this.deltaTime;
 	this.materialPhase.uniforms.u_size.value = this.size;
 	this.renderer.setRenderTarget( this.pingPhase ? this.pongPhaseFramebuffer : this.pingPhaseFramebuffer );
@@ -341,7 +344,9 @@ THREE.Ocean.prototype.renderSpectrumFFT = function () {
 		}
 
 	}
+
 	this.scene.overrideMaterial = this.materialOceanVertical;
+
 	for ( var i = iterations; i < iterations * 2; i ++ ) {
 
 		if ( i === iterations * 2 - 1 ) {

+ 2 - 0
examples/js/misc/Volume.js

@@ -435,6 +435,7 @@ THREE.Volume.prototype = {
 		var datasize = this.data.length;
 
 		var i = 0;
+
 		for ( i = 0; i < datasize; i ++ ) {
 
 			if ( ! isNaN( this.data[ i ] ) ) {
@@ -446,6 +447,7 @@ THREE.Volume.prototype = {
 			}
 
 		}
+
 		this.min = min;
 		this.max = max;
 

+ 1 - 0
examples/js/misc/VolumeSlice.js

@@ -169,6 +169,7 @@ THREE.VolumeSlice.prototype = {
 			}
 
 		}
+
 		ctx.putImageData( imgData, 0, 0 );
 		this.ctx.drawImage( canvas, 0, 0, iLength, jLength, 0, 0, this.canvas.width, this.canvas.height );
 

+ 7 - 0
examples/js/objects/Fire.js

@@ -89,6 +89,7 @@ THREE.Fire = function ( geometry, options ) {
 						this.sourceData[ stride ] = Math.min( Math.max( density, 0.0 ), 1.0 ) * 255;
 
 					}
+
 					if ( windX != null ) {
 
 						var wind = Math.min( Math.max( windX, - 1.0 ), 1.0 );
@@ -96,6 +97,7 @@ THREE.Fire = function ( geometry, options ) {
 						this.sourceData[ stride + 1 ] = wind;
 
 					}
+
 					if ( windY != null ) {
 
 						var wind = Math.min( Math.max( windY, - 1.0 ), 1.0 );
@@ -273,6 +275,7 @@ THREE.Fire = function ( geometry, options ) {
 		shader = THREE.Fire.ColorShader;
 
 	}
+
 	this.material = new THREE.ShaderMaterial( {
 		uniforms: shader.uniforms,
 		vertexShader: shader.vertexShader,
@@ -434,11 +437,13 @@ THREE.Fire = function ( geometry, options ) {
 	this.onBeforeRender = function ( renderer ) {
 
 		var delta = this.clock.getDelta();
+
 		if ( delta > 0.1 ) {
 
 			delta = 0.1;
 
 		}
+
 		var dt = delta * ( this.speed * 0.1 );
 
 		this.configShaders( dt );
@@ -460,11 +465,13 @@ THREE.Fire = function ( geometry, options ) {
 		this.renderSource( renderer );
 
 		this.clearDiffuse();
+
 		for ( var i = 0; i < 21; i ++ ) {
 
 			this.renderDiffuse( renderer );
 
 		}
+
 		this.configShaders( dt );
 		this.renderDiffuse( renderer );
 

+ 10 - 0
examples/js/postprocessing/AdaptiveToneMappingPass.js

@@ -191,11 +191,13 @@ THREE.AdaptiveToneMappingPass.prototype = Object.assign( Object.create( THREE.Pa
 			this.luminanceRT.dispose();
 
 		}
+
 		if ( this.currentLuminanceRT ) {
 
 			this.currentLuminanceRT.dispose();
 
 		}
+
 		if ( this.previousLuminanceRT ) {
 
 			this.previousLuminanceRT.dispose();
@@ -224,6 +226,7 @@ THREE.AdaptiveToneMappingPass.prototype = Object.assign( Object.create( THREE.Pa
 			this.materialToneMap.uniforms.luminanceMap.value = this.luminanceRT.texture;
 
 		}
+
 		//Put something in the adaptive luminance texture so that the scene can render initially
 		this.fsQuad.material = new THREE.MeshBasicMaterial( { color: 0x777777 } );
 		this.materialLuminance.needsUpdate = true;
@@ -250,6 +253,7 @@ THREE.AdaptiveToneMappingPass.prototype = Object.assign( Object.create( THREE.Pa
 			this.materialToneMap.uniforms.luminanceMap.value = null;
 
 		}
+
 		this.materialToneMap.needsUpdate = true;
 
 	},
@@ -312,31 +316,37 @@ THREE.AdaptiveToneMappingPass.prototype = Object.assign( Object.create( THREE.Pa
 			this.luminanceRT.dispose();
 
 		}
+
 		if ( this.previousLuminanceRT ) {
 
 			this.previousLuminanceRT.dispose();
 
 		}
+
 		if ( this.currentLuminanceRT ) {
 
 			this.currentLuminanceRT.dispose();
 
 		}
+
 		if ( this.materialLuminance ) {
 
 			this.materialLuminance.dispose();
 
 		}
+
 		if ( this.materialAdaptiveLum ) {
 
 			this.materialAdaptiveLum.dispose();
 
 		}
+
 		if ( this.materialCopy ) {
 
 			this.materialCopy.dispose();
 
 		}
+
 		if ( this.materialToneMap ) {
 
 			this.materialToneMap.dispose();

+ 1 - 1
examples/js/renderers/CSS3DRenderer.js

@@ -210,7 +210,7 @@ THREE.CSS3DRenderer = function () {
 				cache.objects.set( object, objectData );
 
 			}
-			
+
 			element.style.display = object.visible ? '' : 'none';
 
 			if ( element.parentNode !== cameraElement ) {

+ 4 - 4
examples/js/shaders/ACESFilmicToneMappingShader.js

@@ -47,14 +47,14 @@ THREE.ACESFilmicToneMappingShader = {
 
 		'vec3 ACESFilmicToneMapping( vec3 color ) {',
 
-			// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
+		// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
 		'	const mat3 ACESInputMat = mat3(',
 		'		vec3( 0.59719, 0.07600, 0.02840 ),', // transposed from source
 		'		vec3( 0.35458, 0.90834, 0.13383 ),',
 		'		vec3( 0.04823, 0.01566, 0.83777 )',
 		'	);',
 
-			// ODT_SAT => XYZ => D60_2_D65 => sRGB
+		// ODT_SAT => XYZ => D60_2_D65 => sRGB
 		'	const mat3 ACESOutputMat = mat3(',
 		'		vec3(  1.60475, -0.10208, -0.00327 ),', // transposed from source
 		'		vec3( -0.53108,  1.10813, -0.07276 ),',
@@ -63,12 +63,12 @@ THREE.ACESFilmicToneMappingShader = {
 
 		'	color = ACESInputMat * color;',
 
-			// Apply RRT and ODT
+		// Apply RRT and ODT
 		'	color = RRTAndODTFit( color );',
 
 		'	color = ACESOutputMat * color;',
 
-			// Clamp to [0, 1]
+		// Clamp to [0, 1]
 		'	return saturate( color );',
 
 		'}',

+ 2 - 2
examples/js/utils/BufferGeometryUtils.js

@@ -228,8 +228,8 @@ THREE.BufferGeometryUtils = {
 
 			if ( attributesCount !== attributesUsed.size ) {
 
-					console.error( 'THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index ' + i + '. Make sure all geometries have the same number of attributes.' );
-					return null;
+				console.error( 'THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index ' + i + '. Make sure all geometries have the same number of attributes.' );
+				return null;
 
 			}
 

+ 10 - 0
examples/jsm/controls/TransformControls.js

@@ -495,11 +495,13 @@ var TransformControls = function ( camera, domElement ) {
 					_tempVector2.x = 1;
 
 				}
+
 				if ( axis.search( 'Y' ) === - 1 ) {
 
 					_tempVector2.y = 1;
 
 				}
+
 				if ( axis.search( 'Z' ) === - 1 ) {
 
 					_tempVector2.z = 1;
@@ -1101,11 +1103,13 @@ var TransformControlsGizmo = function () {
 					object.position.set( position[ 0 ], position[ 1 ], position[ 2 ] );
 
 				}
+
 				if ( rotation ) {
 
 					object.rotation.set( rotation[ 0 ], rotation[ 1 ], rotation[ 2 ] );
 
 				}
+
 				if ( scale ) {
 
 					object.scale.set( scale[ 0 ], scale[ 1 ], scale[ 2 ] );
@@ -1356,6 +1360,7 @@ var TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'Y' || handle.name === 'XYZY' ) {
 
 					if ( Math.abs( alignVector.copy( unitY ).applyQuaternion( quaternion ).dot( this.eye ) ) > AXIS_HIDE_TRESHOLD ) {
@@ -1366,6 +1371,7 @@ var TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'Z' || handle.name === 'XYZZ' ) {
 
 					if ( Math.abs( alignVector.copy( unitZ ).applyQuaternion( quaternion ).dot( this.eye ) ) > AXIS_HIDE_TRESHOLD ) {
@@ -1376,6 +1382,7 @@ var TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'XY' ) {
 
 					if ( Math.abs( alignVector.copy( unitZ ).applyQuaternion( quaternion ).dot( this.eye ) ) < PLANE_HIDE_TRESHOLD ) {
@@ -1386,6 +1393,7 @@ var TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'YZ' ) {
 
 					if ( Math.abs( alignVector.copy( unitX ).applyQuaternion( quaternion ).dot( this.eye ) ) < PLANE_HIDE_TRESHOLD ) {
@@ -1396,6 +1404,7 @@ var TransformControlsGizmo = function () {
 					}
 
 				}
+
 				if ( handle.name === 'XZ' ) {
 
 					if ( Math.abs( alignVector.copy( unitY ).applyQuaternion( quaternion ).dot( this.eye ) ) < PLANE_HIDE_TRESHOLD ) {
@@ -1646,6 +1655,7 @@ var TransformControlsPlane = function () {
 						break;
 
 				}
+
 				break;
 			case 'rotate':
 			default:

+ 2 - 0
examples/jsm/csm/CSM.js

@@ -276,6 +276,7 @@ export class CSM {
 			shaders.set( material, shader );
 
 		};
+
 		shaders.set( material, null );
 
 	}
@@ -319,6 +320,7 @@ export class CSM {
 			target.push( new Vector2() );
 
 		}
+
 		target.length = this.breaks.length;
 
 		for ( let i = 0; i < this.cascades; i ++ ) {

+ 1 - 0
examples/jsm/csm/Frustum.js

@@ -88,6 +88,7 @@ export default class Frustum {
 			target.push( new Frustum() );
 
 		}
+
 		target.length = breaks.length;
 
 		for ( let i = 0; i < breaks.length; i ++ ) {

+ 3 - 0
examples/jsm/curves/NURBSUtils.js

@@ -214,6 +214,7 @@ var NURBSUtils = {
 				a[ i ] = zeroArr.slice( 0 );
 
 			}
+
 			a[ 0 ][ 0 ] = 1.0;
 
 			for ( var k = 1; k <= n; ++ k ) {
@@ -265,6 +266,7 @@ var NURBSUtils = {
 				ders[ k ][ j ] *= r;
 
 			}
+
 			r *= p - k;
 
 		}
@@ -305,6 +307,7 @@ var NURBSUtils = {
 			Pw[ i ] = point;
 
 		}
+
 		for ( var k = 0; k <= du; ++ k ) {
 
 			var point = Pw[ span - p ].clone().multiplyScalar( nders[ k ][ 0 ] );

+ 1 - 0
examples/jsm/effects/AsciiEffect.js

@@ -274,6 +274,7 @@ var AsciiEffect = function ( renderer, charSet, options ) {
 				}
 
 			}
+
 			strChars += "<br/>";
 
 		}

+ 1 - 0
examples/jsm/effects/PeppersGhostEffect.js

@@ -46,6 +46,7 @@ var PeppersGhostEffect = function ( renderer ) {
 			_height = height / 3;
 
 		}
+
 		renderer.setSize( width, height );
 
 	};

+ 2 - 2
examples/jsm/exporters/ColladaExporter.js

@@ -582,8 +582,8 @@ ColladaExporter.prototype = {
 					matidsArray = new Array( materials.length );
 
 				}
-				matids = matidsArray.fill()
-					.map( ( v, i ) => processMaterial( materials[ i % materials.length ] ) );
+
+				matids = matidsArray.fill().map( ( v, i ) => processMaterial( materials[ i % materials.length ] ) );
 
 				node +=
 					`<instance_geometry url="#${ meshid }">` +

+ 1 - 1
examples/jsm/exporters/GLTFExporter.js

@@ -727,7 +727,7 @@ GLTFExporter.prototype = {
 			if ( attribute.normalized === true ) {
 
 				gltfAccessor.normalized = true;
-				
+
 			}
 
 			if ( ! outputJSON.accessors ) {

+ 1 - 0
examples/jsm/geometries/TeapotBufferGeometry.js

@@ -690,6 +690,7 @@ var TeapotBufferGeometry = function ( size, segments, bottom, lid, body, fitLid,
 						indices[ indexCount ++ ] = v3;
 
 					}
+
 					if ( notDegenerate( v1, v3, v4 ) ) {
 
 						indices[ indexCount ++ ] = v1;

+ 1 - 2
examples/jsm/lines/LineMaterial.d.ts

@@ -11,7 +11,6 @@ export interface LineMaterialParameters extends MaterialParameters {
 	dashScale?: number;
 	dashSize?: number;
 	gapSize?: number;
-	opacity?: boolean;
 	linewidth?: number;
 	resolution?: Vector2;
 }
@@ -24,7 +23,7 @@ export class LineMaterial extends ShaderMaterial {
 	dashScale: number;
 	dashSize: number;
 	gapSize: number;
-	opacity: boolean;
+	opacity: number;
 	readonly isLineMaterial: true;
 	linewidth: number;
 	resolution: Vector2;

+ 1 - 0
examples/jsm/loaders/3MFLoader.js

@@ -1092,6 +1092,7 @@ ThreeMFLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							meshes.push( newMeshes[ j ] );
 
 						}
+
 						break;
 
 					case 'texture':

+ 1 - 0
examples/jsm/loaders/AMFLoader.js

@@ -302,6 +302,7 @@ AMFLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 					}
 
 				}
+
 				currVerticesNode = currVerticesNode.nextElementSibling;
 
 			}

+ 19 - 4
examples/jsm/loaders/AssimpLoader.js

@@ -71,6 +71,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				return n;
 
 			};
+
 			this.lerp = function ( nextKey, time ) {
 
 				time -= this.time;
@@ -114,6 +115,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				this.keys.push( key );
 
 			};
+
 			this.init = function () {
 
 				this.sortKeys();
@@ -157,6 +159,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 					this.addKey( new Virtulous.KeyFrame( i / fps || track[ i ].time, track[ i ].targets[ 0 ].data ) );
 
 				}
+
 				this.init();
 
 			};
@@ -518,6 +521,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
+
 		function cloneTreeToBones( root, scene ) {
 
 			var rootBone = new Bone();
@@ -675,6 +679,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 					}
 
 				}
+
 				var skeleton = new Skeleton( allBones, offsetMatrix );
 
 				this.threeNode.bind( skeleton, new Matrix4() );
@@ -977,6 +982,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			};
 
 		}
+
 		var namePropMapping = {
 
 			"?mat.name": "name",
@@ -1769,6 +1775,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// write faces. There are no floating-point calculations involved
 			// in these, so we can write a simple hash over the face data
 			// to the dump file. We generate a single 32 Bit hash for 512 faces
@@ -1834,6 +1841,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// write bones
 			if ( mesh.mNumBones ) {
 
@@ -1896,7 +1904,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryNodeAnim( stream, nd ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -1962,7 +1970,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryAnim( stream, anim ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -2016,7 +2024,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryLight( stream, l ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -2046,7 +2054,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
-		// -----------------------------------------------------------------------------------
+
 		function ReadBinaryCamera( stream, cam ) {
 
 			var chunkID = Read_uint32_t( stream );
@@ -2093,6 +2101,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// Read materials
 			if ( scene.mNumMaterials ) {
 
@@ -2106,6 +2115,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// Read all animations
 			if ( scene.mNumAnimations ) {
 
@@ -2119,6 +2129,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// Read all textures
 			if ( scene.mNumTextures ) {
 
@@ -2132,6 +2143,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// Read lights
 			if ( scene.mNumLights ) {
 
@@ -2145,6 +2157,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			// Read cameras
 			if ( scene.mNumCameras ) {
 
@@ -2160,6 +2173,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
+
 		var aiOrigin_CUR = 0;
 		var aiOrigin_BEG = 1;
 
@@ -2173,6 +2187,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 					stream.readOffset += off;
 
 				}
+
 				if ( ori == aiOrigin_BEG ) {
 
 					stream.readOffset = off;

+ 1 - 0
examples/jsm/loaders/BVHLoader.js

@@ -394,6 +394,7 @@ BVHLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			var line;
 			// skip empty lines
 			while ( ( line = lines.shift().trim() ).length === 0 ) { }
+
 			return line;
 
 		}

+ 4 - 0
examples/jsm/loaders/ColladaLoader.js

@@ -2096,6 +2096,7 @@ ColladaLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							data.stride = parseInt( accessor.getAttribute( 'stride' ) );
 
 						}
+
 						break;
 
 				}
@@ -2368,6 +2369,7 @@ ColladaLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 											}
 
 										}
+
 										break;
 
 									case 'NORMAL':
@@ -2396,6 +2398,7 @@ ColladaLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 								}
 
 							}
+
 							break;
 
 						case 'NORMAL':
@@ -3704,6 +3707,7 @@ ColladaLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							object = new Mesh( geometry.data, material );
 
 						}
+
 						break;
 
 				}

+ 1 - 0
examples/jsm/loaders/DDSLoader.js

@@ -105,6 +105,7 @@ DDSLoader.prototype = Object.assign( Object.create( CompressedTextureLoader.prot
 				}
 
 			}
+
 			return byteArray;
 
 		}

+ 1 - 0
examples/jsm/loaders/EXRLoader.js

@@ -147,6 +147,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 				bits = ( ( tmpDataView.getUint32( 0 ) >>> 20 ) & 0x7FF ) - 64;
 
 			}
+
 			var exponent = bits - 1022;
 			var mantissa = ldexp( value, - exponent );
 

+ 5 - 0
examples/jsm/loaders/FBXLoader.js

@@ -535,6 +535,7 @@ var FBXLoader = ( function () {
 				parameters.bumpScale = materialNode.BumpFactor.value;
 
 			}
+
 			if ( materialNode.Diffuse ) {
 
 				parameters.color = new Color().fromArray( materialNode.Diffuse.value );
@@ -2736,12 +2737,14 @@ var FBXLoader = ( function () {
 				curves.x.values = curves.x.values.map( MathUtils.degToRad );
 
 			}
+
 			if ( curves.y !== undefined ) {
 
 				this.interpolateRotations( curves.y );
 				curves.y.values = curves.y.values.map( MathUtils.degToRad );
 
 			}
+
 			if ( curves.z !== undefined ) {
 
 				this.interpolateRotations( curves.z );
@@ -3914,12 +3917,14 @@ var FBXLoader = ( function () {
 
 		var versionRegExp = /FBXVersion: (\d+)/;
 		var match = text.match( versionRegExp );
+
 		if ( match ) {
 
 			var version = parseInt( match[ 1 ] );
 			return version;
 
 		}
+
 		throw new Error( 'THREE.FBXLoader: Cannot find the version number for the file given.' );
 
 	}

+ 5 - 0
examples/jsm/loaders/KTXLoader.js

@@ -104,24 +104,28 @@ var KhronosTextureContainer = ( function () {
 			this.numberOfMipmapLevels = Math.max( 1, this.numberOfMipmapLevels );
 
 		}
+
 		if ( this.pixelHeight === 0 || this.pixelDepth !== 0 ) {
 
 			console.warn( 'only 2D textures currently supported' );
 			return;
 
 		}
+
 		if ( this.numberOfArrayElements !== 0 ) {
 
 			console.warn( 'texture arrays not currently supported' );
 			return;
 
 		}
+
 		if ( this.numberOfFaces !== facesExpected ) {
 
 			console.warn( 'number of faces expected' + facesExpected + ', but found ' + this.numberOfFaces );
 			return;
 
 		}
+
 		// we now have a completely validated file, so could use existence of loadType as success
 		// would need to make this more elaborate & adjust checks above to support more than one load type
 		this.loadType = KhronosTextureContainer.COMPRESSED_2D;
@@ -154,6 +158,7 @@ var KhronosTextureContainer = ( function () {
 				dataOffset += 3 - ( ( imageSize + 3 ) % 4 ); // add padding for odd sized image
 
 			}
+
 			width = Math.max( 1.0, width * 0.5 );
 			height = Math.max( 1.0, height * 0.5 );
 

+ 13 - 1
examples/jsm/loaders/LDrawLoader.js

@@ -843,6 +843,7 @@ var LDrawLoader = ( function () {
 							throw 'LDrawLoader: Invalid colour while parsing material' + lineParser.getLineNumberString() + ".";
 
 						}
+
 						break;
 
 					case "EDGE":
@@ -866,6 +867,7 @@ var LDrawLoader = ( function () {
 							edgeMaterial = edgeMaterial.userData.edgeMaterial;
 
 						}
+
 						break;
 
 					case 'ALPHA':
@@ -1102,6 +1104,7 @@ var LDrawLoader = ( function () {
 					colourCode = mainColourCode;
 
 				}
+
 				if ( forEdge && colourCode === '24' ) {
 
 					colourCode = mainEdgeColourCode;
@@ -1237,6 +1240,7 @@ var LDrawLoader = ( function () {
 										console.warn( 'LDrawLoader: Error parsing material' + lp.getLineNumberString() );
 
 									}
+
 									break;
 
 								case '!CATEGORY':
@@ -1262,6 +1266,7 @@ var LDrawLoader = ( function () {
 										} );
 
 									}
+
 									break;
 
 								case 'FILE':
@@ -1714,8 +1719,8 @@ var LDrawLoader = ( function () {
 				var isRoot = ! parentParseScope.isFromParse;
 				if ( scope.separateObjects && ! isPrimitiveType( parseScope.type ) || isRoot ) {
 
-
 					const objGroup = parseScope.groupObject;
+
 					if ( parseScope.triangles.length > 0 ) {
 
 						objGroup.add( createObject( parseScope.triangles, 3 ) );
@@ -1759,12 +1764,14 @@ var LDrawLoader = ( function () {
 					for ( var i = 0, l = lineSegments.length; i < l; i ++ ) {
 
 						var ls = lineSegments[ i ];
+
 						if ( separateObjects ) {
 
 							ls.v0.applyMatrix4( parseScope.matrix );
 							ls.v1.applyMatrix4( parseScope.matrix );
 
 						}
+
 						parentLineSegments.push( ls );
 
 					}
@@ -1772,6 +1779,7 @@ var LDrawLoader = ( function () {
 					for ( var i = 0, l = conditionalSegments.length; i < l; i ++ ) {
 
 						var os = conditionalSegments[ i ];
+
 						if ( separateObjects ) {
 
 							os.v0.applyMatrix4( parseScope.matrix );
@@ -1780,6 +1788,7 @@ var LDrawLoader = ( function () {
 							os.c1.applyMatrix4( parseScope.matrix );
 
 						}
+
 						parentConditionalSegments.push( os );
 
 					}
@@ -1787,6 +1796,7 @@ var LDrawLoader = ( function () {
 					for ( var i = 0, l = triangles.length; i < l; i ++ ) {
 
 						var tri = triangles[ i ];
+
 						if ( separateObjects ) {
 
 							tri.v0 = tri.v0.clone().applyMatrix4( parseScope.matrix );
@@ -1798,6 +1808,7 @@ var LDrawLoader = ( function () {
 							tri.faceNormal.crossVectors( tempVec0, tempVec1 ).normalize();
 
 						}
+
 						parentTriangles.push( tri );
 
 					}
@@ -1890,6 +1901,7 @@ var LDrawLoader = ( function () {
 							newLocationState = LDrawLoader.FILE_LOCATION_AS_IS;
 
 						}
+
 						break;
 
 					case LDrawLoader.FILE_LOCATION_NOT_FOUND:

+ 1 - 0
examples/jsm/loaders/LWOLoader.js

@@ -1044,6 +1044,7 @@ IFFParser.prototype = {
 					this.parseClip( length );
 
 				}
+
 				break;
 
 			case 'STIL':

+ 18 - 0
examples/jsm/loaders/NRRDLoader.js

@@ -178,16 +178,19 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				}
 
 			}
+
 			if ( ! headerObject.isNrrd ) {
 
 				throw new Error( 'Not an NRRD file' );
 
 			}
+
 			if ( headerObject.encoding === 'bz2' || headerObject.encoding === 'bzip2' ) {
 
 				throw new Error( 'Bzip is not supported' );
 
 			}
+
 			if ( ! headerObject.vectors ) {
 
 				//if no space direction is set, let's use the identity
@@ -240,6 +243,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				parsingFunction = parseFloat;
 
 			}
+
 			for ( var i = start; i < end; i ++ ) {
 
 				value = data[ i ];
@@ -256,17 +260,20 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						resultIndex ++;
 
 					}
+
 					number = '';
 
 				}
 
 			}
+
 			if ( number !== '' ) {
 
 				result[ resultIndex ] = parsingFunction( number, base );
 				resultIndex ++;
 
 			}
+
 			return result;
 
 		}
@@ -290,6 +297,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			}
 
 		}
+
 		// parse the header
 		parseHeader( _header );
 
@@ -319,6 +327,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			_data = _copy;
 
 		}
+
 		// .. let's use the underlying array buffer
 		_data = _data.buffer;
 
@@ -401,6 +410,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			volume.lowerThreshold = min;
 
 		}
+
 		if ( volume.upperThreshold === Infinity ) {
 
 			volume.upperThreshold = max;
@@ -419,6 +429,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			start = 0;
 
 		}
+
 		if ( end === undefined ) {
 
 			end = array.length;
@@ -523,12 +534,14 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				var _i, _len, _ref, _results;
 				_ref = data.split( /\s+/ );
 				_results = [];
+
 				for ( _i = 0, _len = _ref.length; _i < _len; _i ++ ) {
 
 					i = _ref[ _i ];
 					_results.push( parseInt( i, 10 ) );
 
 				}
+
 				return _results;
 
 			} )();
@@ -555,6 +568,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 				var _i, _len, _results;
 				_results = [];
+
 				for ( _i = 0, _len = parts.length; _i < _len; _i ++ ) {
 
 					v = parts[ _i ];
@@ -563,17 +577,20 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						var _j, _len2, _ref, _results2;
 						_ref = v.slice( 1, - 1 ).split( /,/ );
 						_results2 = [];
+
 						for ( _j = 0, _len2 = _ref.length; _j < _len2; _j ++ ) {
 
 							f = _ref[ _j ];
 							_results2.push( parseFloat( f ) );
 
 						}
+
 						return _results2;
 
 					} )() );
 
 				}
+
 				return _results;
 
 			} )();
@@ -594,6 +611,7 @@ NRRDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 					_results.push( parseFloat( f ) );
 
 				}
+
 				return _results;
 
 			} )();

+ 3 - 0
examples/jsm/loaders/OBJLoader.js

@@ -477,6 +477,7 @@ var OBJLoader = ( function () {
 								);
 
 							}
+
 							break;
 						case 'vn':
 							state.normals.push(
@@ -553,6 +554,7 @@ var OBJLoader = ( function () {
 						}
 
 					}
+
 					state.addLineGeometry( lineVertices, lineUVs );
 
 				} else if ( lineFirstChar === 'p' ) {
@@ -628,6 +630,7 @@ var OBJLoader = ( function () {
 						state.object.smooth = true;
 
 					}
+
 					var material = state.object.currentMaterial();
 					if ( material ) material.smooth = state.object.smooth;
 

+ 12 - 0
examples/jsm/loaders/OBJLoader2.js

@@ -39,6 +39,7 @@ const OBJLoader2 = function ( manager ) {
 		scope._onAssetAvailable( payload );
 
 	};
+
 	this.parser.setCallbackOnAssetAvailable( defaultOnAssetAvailable );
 
 };
@@ -239,26 +240,31 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), {
 			this.parser.setCallbackOnLoad( onLoad );
 
 		}
+
 		if ( onError === null || onError === undefined || ! ( onError instanceof Function ) ) {
 
 			onError = function ( event ) {
 
 				let errorMessage = event;
+
 				if ( event.currentTarget && event.currentTarget.statusText !== null ) {
 
 					errorMessage = 'Error occurred while downloading!\nurl: ' + event.currentTarget.responseURL + '\nstatus: ' + event.currentTarget.statusText;
 
 				}
+
 				scope.parser.callbacks.onError( errorMessage );
 
 			};
 
 		}
+
 		if ( ! url ) {
 
 			onError( 'An invalid url was provided. Unable to continue!' );
 
 		}
+
 		let urlFull = new URL( url, window.location.href ).href;
 		let filename = urlFull;
 		let urlParts = urlFull.split( '/' );
@@ -268,6 +274,7 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), {
 			this.path = urlParts.slice( 0, urlParts.length - 1 ).join( '/' ) + '/';
 
 		}
+
 		if ( onFileLoadProgress === null || onFileLoadProgress === undefined || ! ( onFileLoadProgress instanceof Function ) ) {
 
 			let numericalValueRef = 0;
@@ -277,6 +284,7 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), {
 				if ( ! event.lengthComputable ) return;
 
 				numericalValue = event.loaded / event.total;
+
 				if ( numericalValue > numericalValueRef ) {
 
 					numericalValueRef = numericalValue;
@@ -295,6 +303,7 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), {
 			scope.parser.callbacks.onLoad( scope.parse( content ), "OBJLoader2#load: Parsing completed" );
 
 		};
+
 		let fileLoader = new FileLoader( this.manager );
 		fileLoader.setPath( this.path || this.resourcePath );
 		fileLoader.setResponseType( 'arraybuffer' );
@@ -316,6 +325,7 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), {
 			throw 'Provided content is not a valid ArrayBuffer or String. Unable to continue parsing';
 
 		}
+
 		if ( this.parser.logging.enabled ) {
 
 			console.time( 'OBJLoader parse: ' + this.modelName );
@@ -343,11 +353,13 @@ OBJLoader2.prototype = Object.assign( Object.create( Loader.prototype ), {
 			this.parser.callbacks.onError( 'Provided content was neither of type String nor Uint8Array! Aborting...' );
 
 		}
+
 		if ( this.parser.logging.enabled ) {
 
 			console.timeEnd( 'OBJLoader parse: ' + this.modelName );
 
 		}
+
 		return this.baseObject3d;
 
 	},

+ 11 - 1
examples/jsm/loaders/OBJLoader2Parallel.js

@@ -71,10 +71,15 @@ OBJLoader2Parallel.prototype = Object.assign( Object.create( OBJLoader2.prototyp
 	setJsmWorker: function ( preferJsmWorker, jsmWorkerUrl ) {
 
 		this.preferJsmWorker = preferJsmWorker === true;
+
 		if ( jsmWorkerUrl === undefined || jsmWorkerUrl === null ) {
-			throw "The url to the jsm worker is not valid. Aborting..."
+
+			throw "The url to the jsm worker is not valid. Aborting...";
+
 		}
+
 		this.jsmWorkerUrl = jsmWorkerUrl;
+
 		return this;
 
 	},
@@ -96,11 +101,13 @@ OBJLoader2Parallel.prototype = Object.assign( Object.create( OBJLoader2.prototyp
 	buildWorkerCode: function () {
 
 		let codeBuilderInstructions = new CodeBuilderInstructions( true, true, this.preferJsmWorker );
+
 		if ( codeBuilderInstructions.isSupportsJsmWorker() ) {
 
 			codeBuilderInstructions.setJsmWorkerUrl( this.jsmWorkerUrl );
 
 		}
+
 		if ( codeBuilderInstructions.isSupportsStandardWorker() ) {
 
 			let objectManipulator = new ObjectManipulator();
@@ -115,6 +122,7 @@ OBJLoader2Parallel.prototype = Object.assign( Object.create( OBJLoader2.prototyp
 			codeBuilderInstructions.addStartCode( startCode );
 
 		}
+
 		return codeBuilderInstructions;
 
 	},
@@ -161,6 +169,7 @@ OBJLoader2Parallel.prototype = Object.assign( Object.create( OBJLoader2.prototyp
 				throw "No callback other than the default callback was provided! Aborting!";
 
 			}
+
 			// check if worker has been initialize before. If yes, skip init
 			if ( ! this.workerExecutionSupport.isWorkerLoaded( this.preferJsmWorker ) ) {
 
@@ -172,6 +181,7 @@ OBJLoader2Parallel.prototype = Object.assign( Object.create( OBJLoader2.prototyp
 					scope._onAssetAvailable( payload );
 
 				};
+
 				function scopedOnLoad( message ) {
 
 					scope.parser.callbacks.onLoad( scope.baseObject3d, message );

+ 1 - 0
examples/jsm/loaders/PCDLoader.js

@@ -97,6 +97,7 @@ PCDLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						if ( inPtr >= inLength ) throw new Error( 'Invalid compressed data' );
 
 					}
+
 					ref -= inData[ inPtr ++ ];
 					if ( outPtr + len + 2 > outLength ) throw new Error( 'Output buffer is not large enough' );
 					if ( ref < 0 ) throw new Error( 'Invalid compressed data' );

+ 8 - 0
examples/jsm/loaders/RGBELoader.js

@@ -58,6 +58,7 @@ RGBELoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 					case rgbe_memory_error: console.error( "RGBELoader: Error: " + ( msg || '' ) );
 
 				}
+
 				return RGBE_RETURN_FAILURE;
 
 			},
@@ -104,6 +105,7 @@ RGBELoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 					return s + chunk.slice( 0, i );
 
 				}
+
 				return false;
 
 			},
@@ -146,12 +148,14 @@ RGBELoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 					return rgbe_error( rgbe_read_error, "no header found" );
 
 				}
+
 				/* if you want to require the magic token then uncomment the next line */
 				if ( ! ( match = line.match( magic_token_re ) ) ) {
 
 					return rgbe_error( rgbe_format_error, "bad initial token" );
 
 				}
+
 				header.valid |= RGBE_VALID_PROGRAMTYPE;
 				header.programtype = match[ 1 ];
 				header.string += line + "\n";
@@ -174,17 +178,20 @@ RGBELoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 						header.gamma = parseFloat( match[ 1 ], 10 );
 
 					}
+
 					if ( match = line.match( exposure_re ) ) {
 
 						header.exposure = parseFloat( match[ 1 ], 10 );
 
 					}
+
 					if ( match = line.match( format_re ) ) {
 
 						header.valid |= RGBE_VALID_FORMAT;
 						header.format = match[ 1 ];//'32-bit_rle_rgbe';
 
 					}
+
 					if ( match = line.match( dimensions_re ) ) {
 
 						header.valid |= RGBE_VALID_DIMENSIONS;
@@ -202,6 +209,7 @@ RGBELoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
 					return rgbe_error( rgbe_format_error, "missing format specifier" );
 
 				}
+
 				if ( ! ( header.valid & RGBE_VALID_DIMENSIONS ) ) {
 
 					return rgbe_error( rgbe_format_error, "missing image size specifier" );

+ 23 - 2
examples/jsm/loaders/SVGLoader.js

@@ -208,6 +208,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'H':
@@ -223,6 +224,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'V':
@@ -238,6 +240,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'L':
@@ -254,6 +257,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'C':
@@ -277,6 +281,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'S':
@@ -300,6 +305,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'Q':
@@ -321,6 +327,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'T':
@@ -344,6 +351,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'A':
@@ -363,6 +371,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'm':
@@ -388,6 +397,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'h':
@@ -403,6 +413,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'v':
@@ -418,6 +429,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'l':
@@ -434,6 +446,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'c':
@@ -457,6 +470,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 's':
@@ -480,6 +494,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'q':
@@ -501,6 +516,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 't':
@@ -524,6 +540,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'a':
@@ -543,6 +560,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							if ( j === 0 && doSetFirstPoint === true ) firstPoint.copy( point );
 
 						}
+
 						break;
 
 					case 'Z':
@@ -557,6 +575,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 							isFirstPoint = true;
 
 						}
+
 						break;
 
 					default:
@@ -576,7 +595,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 		function parseCSSStylesheet( node ) {
 
-			if ( !node.sheet || !node.sheet.cssRules || !node.sheet.cssRules.length ) return;
+			if ( ! node.sheet || ! node.sheet.cssRules || ! node.sheet.cssRules.length ) return;
 
 			for ( var i = 0; i < node.sheet.cssRules.length; i ++ ) {
 
@@ -597,7 +616,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 					);
 
 				}
-				
+
 			}
 
 		}
@@ -1506,6 +1525,7 @@ SVGLoader.pointsToStrokeWithBuffers = function () {
 					joinIsOnLeftSide = false;
 
 				}
+
 				if ( iPoint === 1 ) initialJoinIsOnLeftSide = joinIsOnLeftSide;
 
 				tempV2_3.subVectors( nextPoint, currentPoint );
@@ -1533,6 +1553,7 @@ SVGLoader.pointsToStrokeWithBuffers = function () {
 						innerSideModified = true;
 
 					}
+
 					outerPoint.copy( tempV2_5 ).add( currentPoint );
 					innerPoint.add( currentPoint );
 

+ 4 - 0
examples/jsm/loaders/TGALoader.js

@@ -64,6 +64,7 @@ TGALoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						console.error( 'THREE.TGALoader: Invalid type colormap data for indexed type.' );
 
 					}
+
 					break;
 
 					// check colormap type
@@ -77,6 +78,7 @@ TGALoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						console.error( 'THREE.TGALoader: Invalid type colormap data for colormap type.' );
 
 					}
+
 					break;
 
 					// What the need of a file without data ?
@@ -172,11 +174,13 @@ TGALoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						// raw pixels
 
 						count *= pixel_size;
+
 						for ( i = 0; i < count; ++ i ) {
 
 							pixel_data[ shift + i ] = data[ offset ++ ];
 
 						}
+
 						shift += count;
 
 					}

+ 13 - 0
examples/jsm/loaders/VRMLLoader.js

@@ -939,6 +939,7 @@ var VRMLLoader = ( function () {
 								material = getNode( fieldValues[ 0 ] );
 
 							}
+
 							break;
 
 						case 'geometry':
@@ -947,6 +948,7 @@ var VRMLLoader = ( function () {
 								geometry = getNode( fieldValues[ 0 ] );
 
 							}
+
 							break;
 
 						default:
@@ -1079,6 +1081,7 @@ var VRMLLoader = ( function () {
 								material = new MeshBasicMaterial( { color: 0x000000 } );
 
 							}
+
 							break;
 
 						case 'texture':
@@ -1096,6 +1099,7 @@ var VRMLLoader = ( function () {
 								}
 
 							}
+
 							break;
 
 						case 'textureTransform':
@@ -1104,6 +1108,7 @@ var VRMLLoader = ( function () {
 								transformData = getNode( fieldValues[ 0 ] );
 
 							}
+
 							break;
 
 						default:
@@ -1495,6 +1500,7 @@ var VRMLLoader = ( function () {
 								color = getNode( colorNode );
 
 							}
+
 							break;
 
 						case 'coord':
@@ -1505,6 +1511,7 @@ var VRMLLoader = ( function () {
 								coord = getNode( coordNode );
 
 							}
+
 							break;
 
 						case 'normal':
@@ -1515,6 +1522,7 @@ var VRMLLoader = ( function () {
 								normal = getNode( normalNode );
 
 							}
+
 							break;
 
 						case 'texCoord':
@@ -1525,6 +1533,7 @@ var VRMLLoader = ( function () {
 								texCoord = getNode( texCoordNode );
 
 							}
+
 							break;
 
 						case 'ccw':
@@ -1751,6 +1760,7 @@ var VRMLLoader = ( function () {
 								color = getNode( colorNode );
 
 							}
+
 							break;
 
 						case 'coord':
@@ -1761,6 +1771,7 @@ var VRMLLoader = ( function () {
 								coord = getNode( coordNode );
 
 							}
+
 							break;
 
 						case 'colorIndex':
@@ -1870,6 +1881,7 @@ var VRMLLoader = ( function () {
 								color = getNode( colorNode );
 
 							}
+
 							break;
 
 						case 'coord':
@@ -1880,6 +1892,7 @@ var VRMLLoader = ( function () {
 								coord = getNode( coordNode );
 
 							}
+
 							break;
 
 

+ 3 - 0
examples/jsm/loaders/VTKLoader.js

@@ -400,6 +400,7 @@ VTKLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						pointIndex = pointIndex + 12;
 
 					}
+
 					// increment our next pointer
 					state.next = state.next + count + 1;
 
@@ -448,6 +449,7 @@ VTKLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						}
 
 					}
+
 					// increment our next pointer
 					state.next = state.next + count + 1;
 
@@ -485,6 +487,7 @@ VTKLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 						}
 
 					}
+
 					// increment our next pointer
 					state.next = state.next + count + 1;
 

+ 73 - 0
examples/jsm/loaders/XLoader.js

@@ -105,11 +105,13 @@ var XLoader = ( function () {
 				this.putFlags.putPos = true;
 
 			}
+
 			if ( this.putFlags.putRot === undefined ) {
 
 				this.putFlags.putRot = true;
 
 			}
+
 			if ( this.putFlags.putScl === undefined ) {
 
 				this.putFlags.putScl = true;
@@ -127,6 +129,7 @@ var XLoader = ( function () {
 					this.hierarchy.push( this.makeBonekeys( XAnimationInfoArray[ i ] ) );
 
 				}
+
 				this.length = this.hierarchy[ 0 ].keys[ this.hierarchy[ 0 ].keys.length - 1 ].time;
 
 			}
@@ -150,6 +153,7 @@ var XLoader = ( function () {
 					return Object.assign( {}, this );
 
 				};
+
 				return refObj;
 
 			}
@@ -167,16 +171,19 @@ var XLoader = ( function () {
 						keyframe.pos = XAnimationInfo.keyFrames[ i ].pos;
 
 					}
+
 					if ( XAnimationInfo.keyFrames[ i ].rot && this.putFlags.putRot ) {
 
 						keyframe.rot = XAnimationInfo.keyFrames[ i ].rot;
 
 					}
+
 					if ( XAnimationInfo.keyFrames[ i ].scl && this.putFlags.putScl ) {
 
 						keyframe.scl = XAnimationInfo.keyFrames[ i ].scl;
 
 					}
+
 					if ( XAnimationInfo.keyFrames[ i ].matrix ) {
 
 						keyframe.matrix = XAnimationInfo.keyFrames[ i ].matrix;
@@ -185,11 +192,13 @@ var XLoader = ( function () {
 							keyframe.pos = new Vector3().setFromMatrixPosition( keyframe.matrix );
 
 						}
+
 						if ( this.putFlags.putRot ) {
 
 							keyframe.rot = new Quaternion().setFromRotationMatrix( keyframe.matrix );
 
 						}
+
 						if ( this.putFlags.putScl ) {
 
 							keyframe.scl = new Vector3().setFromMatrixScale( keyframe.matrix );
@@ -197,9 +206,11 @@ var XLoader = ( function () {
 						}
 
 					}
+
 					keys.push( keyframe );
 
 				}
+
 				return keys;
 
 			}
@@ -261,6 +272,7 @@ var XLoader = ( function () {
 					return;
 
 				}
+
 				for ( var i = _start; i < _arg.length; i ++ ) {
 
 					switch ( i ) {
@@ -275,6 +287,7 @@ var XLoader = ( function () {
 					}
 
 				}
+
 				if ( this.options === undefined ) {
 
 					this.options = {};
@@ -313,6 +326,7 @@ var XLoader = ( function () {
 						find = line.indexOf( '#', readed );
 
 					}
+
 					if ( find > - 1 && find < 2 ) {
 
 						var foundNewLine = - 1;
@@ -343,6 +357,7 @@ var XLoader = ( function () {
 					}
 
 				}
+
 				return line.substr( readed );
 
 			}
@@ -360,6 +375,7 @@ var XLoader = ( function () {
 						find = line.indexOf( '#', readed );
 
 					}
+
 					if ( find > - 1 && find < 2 ) {
 
 						var foundNewLine = - 1;
@@ -390,6 +406,7 @@ var XLoader = ( function () {
 					}
 
 				}
+
 				return line.substr( readed );
 
 			}
@@ -406,6 +423,7 @@ var XLoader = ( function () {
 					return true;
 
 				}
+
 				var fileLength = reader.byteLength;
 				for ( var index = 0; index < fileLength; index ++ ) {
 
@@ -416,6 +434,7 @@ var XLoader = ( function () {
 					}
 
 				}
+
 				return false;
 
 			}
@@ -431,6 +450,7 @@ var XLoader = ( function () {
 						array_buffer[ i ] = buf.charCodeAt( i ) & 0xff;
 
 					}
+
 					return array_buffer.buffer || array_buffer;
 
 				} else {
@@ -537,6 +557,7 @@ var XLoader = ( function () {
 							_currentObject.type = "";
 
 						}
+
 						if ( _currentObject.type === "Animation" ) {
 
 							_currentObject.data = this._data.substr( findNext, findEnd - findNext ).trim();
@@ -562,6 +583,7 @@ var XLoader = ( function () {
 							}
 
 						}
+
 						_currentObject.parent = _parent;
 						if ( _currentObject.type != "template" ) {
 
@@ -577,6 +599,7 @@ var XLoader = ( function () {
 					}
 
 				}
+
 				return {
 					parent: _parent,
 					end: endRead
@@ -686,6 +709,7 @@ var XLoader = ( function () {
 									this._currentAnime.AnimeFrames.push( this._currentAnimeFrames );
 
 								}
+
 								this._currentAnimeFrames = new XAnimationInfo();
 								this._currentAnimeFrames.boneName = this._currentObject.data.trim();
 								break;
@@ -695,9 +719,11 @@ var XLoader = ( function () {
 								break;
 
 						}
+
 						this._currentObject.worked = true;
 
 					}
+
 					if ( this._currentObject.children.length > 0 ) {
 
 						this._currentObject = this._currentObject.children.shift();
@@ -706,6 +732,7 @@ var XLoader = ( function () {
 							console.log( 'processing ' + this._currentObject.name );
 
 						}
+
 						if ( breakFlag ) break;
 
 					} else {
@@ -719,6 +746,7 @@ var XLoader = ( function () {
 							}
 
 						}
+
 						if ( this._currentObject.parent ) {
 
 							this._currentObject = this._currentObject.parent;
@@ -728,11 +756,13 @@ var XLoader = ( function () {
 							breakFlag = true;
 
 						}
+
 						if ( breakFlag ) break;
 
 					}
 
 				}
+
 				return;
 
 			}
@@ -745,6 +775,7 @@ var XLoader = ( function () {
 					this._makeOutputGeometry();
 
 				}
+
 				this._currentGeo = {};
 				if ( this._currentAnime != null && this._currentAnime.name ) {
 
@@ -754,9 +785,11 @@ var XLoader = ( function () {
 						this._currentAnimeFrames = null;
 
 					}
+
 					this._makeOutputAnimation();
 
 				}
+
 				this._currentAnime = {};
 
 			}
@@ -796,6 +829,7 @@ var XLoader = ( function () {
 					this._currentFrame.parentName = this._currentObject.parent.name;
 
 				}
+
 				this.frameHierarchie.push( this._nowFrameName );
 				this.HieStack[ this._nowFrameName ] = this._currentFrame;
 
@@ -819,6 +853,7 @@ var XLoader = ( function () {
 					return;
 
 				}
+
 				var b = new Bone();
 				b.name = this._currentFrame.name;
 				b.applyMatrix4( this._currentFrame.FrameTransformMatrix );
@@ -876,6 +911,7 @@ var XLoader = ( function () {
 								break;
 
 						}
+
 						if ( find === 0 || find > maxLength ) {
 
 							find = maxLength;
@@ -883,6 +919,7 @@ var XLoader = ( function () {
 							changeMode = true;
 
 						}
+
 						switch ( this._currentObject.type ) {
 
 							case "Mesh":
@@ -896,6 +933,7 @@ var XLoader = ( function () {
 										break;
 
 								}
+
 								break;
 							case "MeshNormals":
 								switch ( mode ) {
@@ -905,9 +943,11 @@ var XLoader = ( function () {
 										break;
 
 								}
+
 								break;
 
 						}
+
 						endRead = find + 1;
 						if ( changeMode ) {
 
@@ -916,6 +956,7 @@ var XLoader = ( function () {
 						}
 
 					}
+
 					if ( endRead >= this._currentObject.data.length ) {
 
 						break;
@@ -1075,6 +1116,7 @@ var XLoader = ( function () {
 									mode_local = 0;
 
 								}
+
 								var line = this._currentObject.data.substr( endRead, find - endRead );
 								var data = this._readLine( line.trim() ).split( ";" );
 								if ( this.IsUvYReverse ) {
@@ -1086,12 +1128,15 @@ var XLoader = ( function () {
 									this._currentGeo.GeometryData.uvs.push( parseFloat( data[ 0 ] ), parseFloat( data[ 1 ] ) );
 
 								}
+
 								endRead = find + 1;
 
 							}
+
 							break;
 
 					}
+
 					if ( endRead >= this._currentObject.data.length ) {
 
 						break;
@@ -1126,6 +1171,7 @@ var XLoader = ( function () {
 							mode_local = 0;
 
 						}
+
 						var line = this._currentObject.data.substr( endRead, find - endRead );
 						var data = this._readLine( line.trim() ).split( "," );
 						for ( var i = 0; i < data.length; i ++ ) {
@@ -1133,9 +1179,11 @@ var XLoader = ( function () {
 							this._currentGeo.GeometryData.materialIndices[ i ] = parseInt( data[ i ] );
 
 						}
+
 						endRead = this._currentObject.data.length;
 
 					}
+
 					if ( endRead >= this._currentObject.data.length || mode >= 3 ) {
 
 						break;
@@ -1179,6 +1227,7 @@ var XLoader = ( function () {
 					find = this._currentObject.data.length;
 
 				}
+
 				line = this._currentObject.data.substr( endRead, find - endRead );
 				var data3 = this._readLine( line.trim() ).split( ";" );
 				_nowMat.emissive.r = parseFloat( data3[ 0 ] );
@@ -1195,6 +1244,7 @@ var XLoader = ( function () {
 							console.log( 'processing ' + localObject.name );
 
 						}
+
 						var fileName = localObject.data.substr( 1, localObject.data.length - 2 );
 						switch ( localObject.type ) {
 
@@ -1225,6 +1275,7 @@ var XLoader = ( function () {
 					}
 
 				}
+
 				this._currentGeo.Materials.push( _nowMat );
 
 			}
@@ -1249,6 +1300,7 @@ var XLoader = ( function () {
 					boneInf.Indeces.push( parseInt( data[ i ] ) );
 
 				}
+
 				endRead = find + 1;
 				find = this._currentObject.data.indexOf( ';', endRead );
 				line = this._currentObject.data.substr( endRead, find - endRead );
@@ -1258,6 +1310,7 @@ var XLoader = ( function () {
 					boneInf.Weights.push( parseFloat( data2[ _i ] ) );
 
 				}
+
 				endRead = find + 1;
 				find = this._currentObject.data.indexOf( ';', endRead );
 				if ( find <= 0 ) {
@@ -1265,6 +1318,7 @@ var XLoader = ( function () {
 					find = this._currentObject.data.length;
 
 				}
+
 				line = this._currentObject.data.substr( endRead, find - endRead );
 				var data3 = this._readLine( line.trim() ).split( "," );
 				boneInf.OffsetMatrix = new Matrix4();
@@ -1305,6 +1359,7 @@ var XLoader = ( function () {
 							}
 
 						}
+
 						_bones.push( b );
 
 					}
@@ -1336,6 +1391,7 @@ var XLoader = ( function () {
 							}
 
 						}
+
 						for ( var vi = 0; vi < this._currentGeo.BoneInfs[ bi ].Indeces.length; vi ++ ) {
 
 							var nowVertexID = this._currentGeo.BoneInfs[ bi ].Indeces[ vi ];
@@ -1363,6 +1419,7 @@ var XLoader = ( function () {
 									break;
 
 							}
+
 							this._currentGeo.VertexSetedBoneCount[ nowVertexID ] ++;
 							if ( this._currentGeo.VertexSetedBoneCount[ nowVertexID ] > 4 ) {
 
@@ -1373,11 +1430,13 @@ var XLoader = ( function () {
 						}
 
 					}
+
 					for ( var sk = 0; sk < this._currentGeo.Materials.length; sk ++ ) {
 
 						this._currentGeo.Materials[ sk ].skinning = true;
 
 					}
+
 					var offsetList = [];
 					for ( var _bi = 0; _bi < putBones.length; _bi ++ ) {
 
@@ -1404,6 +1463,7 @@ var XLoader = ( function () {
 					mesh = new Mesh( _bufferGeometry, this._currentGeo.Materials.length === 1 ? this._currentGeo.Materials[ 0 ] : this._currentGeo.Materials );
 
 				}
+
 				mesh.name = this._currentGeo.name;
 				var worldBaseMx = new Matrix4();
 				var currentMxFrame = this._currentGeo.baseFrame.putBone;
@@ -1423,9 +1483,11 @@ var XLoader = ( function () {
 						}
 
 					}
+
 					mesh.applyMatrix4( worldBaseMx );
 
 				}
+
 				this.Meshes.push( mesh );
 
 			}
@@ -1508,6 +1570,7 @@ var XLoader = ( function () {
 							}
 
 						}
+
 						var frameValue = data2[ 2 ].split( "," );
 						switch ( nowKeyType ) {
 
@@ -1522,6 +1585,7 @@ var XLoader = ( function () {
 								break;
 
 						}
+
 						if ( ! frameFound ) {
 
 							this._currentAnimeFrames.keyFrames.push( keyInfo );
@@ -1561,16 +1625,19 @@ var XLoader = ( function () {
 					model = this.Meshes[ 0 ];
 
 				}
+
 				if ( ! animation ) {
 
 					animation = this.animations[ 0 ];
 
 				}
+
 				if ( ! model || ! animation ) {
 
 					return null;
 
 				}
+
 				var put = {};
 				put.fps = animation.fps;
 				put.name = animation.name;
@@ -1600,12 +1667,14 @@ var XLoader = ( function () {
 								}
 
 							}
+
 							put.hierarchy.push( c_key );
 							break;
 
 						}
 
 					}
+
 					if ( ! findAnimation ) {
 
 						var _c_key = animation.hierarchy[ 0 ].copy();
@@ -1618,11 +1687,13 @@ var XLoader = ( function () {
 								_c_key.keys[ k ].pos.set( 0, 0, 0 );
 
 							}
+
 							if ( _c_key.keys[ k ].scl ) {
 
 								_c_key.keys[ k ].scl.set( 1, 1, 1 );
 
 							}
+
 							if ( _c_key.keys[ k ].rot ) {
 
 								_c_key.keys[ k ].rot.set( 0, 0, 0, 1 );
@@ -1630,11 +1701,13 @@ var XLoader = ( function () {
 							}
 
 						}
+
 						put.hierarchy.push( _c_key );
 
 					}
 
 				}
+
 				if ( ! model.geometry.animations ) {
 
 					model.geometry.animations = [];

+ 26 - 0
examples/jsm/loaders/obj2/OBJLoader2Parser.js

@@ -184,6 +184,7 @@ OBJLoader2Parser.prototype = {
 			this.callbacks.onAssetAvailable = onAssetAvailable;
 
 		}
+
 		return this;
 
 	},
@@ -201,6 +202,7 @@ OBJLoader2Parser.prototype = {
 			this.callbacks.onProgress = onProgress;
 
 		}
+
 		return this;
 
 	},
@@ -218,6 +220,7 @@ OBJLoader2Parser.prototype = {
 			this.callbacks.onError = onError;
 
 		}
+
 		return this;
 
 	},
@@ -235,6 +238,7 @@ OBJLoader2Parser.prototype = {
 			this.callbacks.onLoad = onLoad;
 
 		}
+
 		return this;
 
 	},
@@ -379,6 +383,7 @@ OBJLoader2Parser.prototype = {
 			}
 
 		}
+
 		this._finalizeParsing();
 		if ( this.logging.enabled ) console.timeEnd( 'OBJLoader2Parser.execute' );
 
@@ -434,6 +439,7 @@ OBJLoader2Parser.prototype = {
 			}
 
 		}
+
 		this._finalizeParsing();
 		if ( this.logging.enabled ) console.timeEnd( 'OBJLoader2Parser.executeLegacy' );
 
@@ -459,9 +465,11 @@ OBJLoader2Parser.prototype = {
 					for ( i = start; i < stop; i ++ ) line += String.fromCharCode( content[ i ] );
 
 				}
+
 				line = line.trim();
 
 			}
+
 			return line;
 
 		};
@@ -481,6 +489,7 @@ OBJLoader2Parser.prototype = {
 					this.colors.push( parseFloat( buffer[ 6 ] ) );
 
 				}
+
 				break;
 
 			case 'vt':
@@ -549,6 +558,7 @@ OBJLoader2Parser.prototype = {
 					}
 
 				}
+
 				break;
 
 			case 'l':
@@ -565,6 +575,7 @@ OBJLoader2Parser.prototype = {
 					for ( i = 1, length = bufferLength + 1; i < length; i ++ ) this._buildFace( buffer[ i ] );
 
 				}
+
 				break;
 
 			case 's':
@@ -596,6 +607,7 @@ OBJLoader2Parser.prototype = {
 					this._checkSubGroup();
 
 				}
+
 				break;
 
 			default:
@@ -699,6 +711,7 @@ OBJLoader2Parser.prototype = {
 				colors.push( scope.colors[ indexPointerC ] );
 
 			}
+
 			if ( faceIndexU ) {
 
 				let faceIndexUi = parseInt( faceIndexU );
@@ -708,6 +721,7 @@ OBJLoader2Parser.prototype = {
 				uvs.push( scope.uvs[ indexPointerU ] );
 
 			}
+
 			if ( faceIndexN && ! scope.disregardNormals ) {
 
 				let faceIndexNi = parseInt( faceIndexN );
@@ -738,6 +752,7 @@ OBJLoader2Parser.prototype = {
 				this.rawMesh.counts.doubleIndicesCount ++;
 
 			}
+
 			subGroupInUse.indices.push( indicesPointer );
 
 		} else {
@@ -745,6 +760,7 @@ OBJLoader2Parser.prototype = {
 			updateSubGroupInUse();
 
 		}
+
 		this.rawMesh.counts.faceCount ++;
 
 	},
@@ -793,6 +809,7 @@ OBJLoader2Parser.prototype = {
 					}
 
 				}
+
 				meshOutputGroupTemp.push( meshOutputGroup );
 				absoluteVertexCount += meshOutputGroup.vertices.length;
 				absoluteIndexMappingsCount += meshOutputGroup.indexMappingsCount;
@@ -822,6 +839,7 @@ OBJLoader2Parser.prototype = {
 			};
 
 		}
+
 		return result;
 
 	},
@@ -837,6 +855,7 @@ OBJLoader2Parser.prototype = {
 				this.callbacks.onError( 'Vertex Colors were detected, but vertex count and color count do not match!' );
 
 			}
+
 			if ( this.logging.enabled && this.logging.debug ) console.debug( this._createRawMeshReport( this.inputObjectCount ) );
 			this.inputObjectCount ++;
 
@@ -847,6 +866,7 @@ OBJLoader2Parser.prototype = {
 			this._resetRawMesh();
 
 		}
+
 		return haveMesh;
 
 	},
@@ -907,6 +927,7 @@ OBJLoader2Parser.prototype = {
 				materialName = this.rawMesh.faceType === 6 ? 'defaultPointMaterial' : 'defaultLineMaterial';
 
 			}
+
 			materialOrg = this.materials[ materialNameOrg ];
 			material = this.materials[ materialName ];
 
@@ -924,6 +945,7 @@ OBJLoader2Parser.prototype = {
 				}
 
 			}
+
 			if ( material === undefined || material === null ) {
 
 				let materialCloneInstructions = {
@@ -965,6 +987,7 @@ OBJLoader2Parser.prototype = {
 					materialIndex ++;
 
 				}
+
 				materialGroupLength = this.useIndices ? meshOutputGroup.indices.length : meshOutputGroup.vertices.length / 3;
 				materialGroup = {
 					start: materialGroupOffset,
@@ -1003,6 +1026,7 @@ OBJLoader2Parser.prototype = {
 				normalFAOffset += meshOutputGroup.normals.length;
 
 			}
+
 			if ( uvFA ) {
 
 				uvFA.set( meshOutputGroup.uvs, uvFAOffset );
@@ -1018,6 +1042,7 @@ OBJLoader2Parser.prototype = {
 					materialIndexLine = '\n\t\tmaterialIndex: ' + selectedMaterialIndex;
 
 				}
+
 				let createdReport = '\tOutput Object no.: ' + this.outputObjectCount +
 					'\n\t\tgroupName: ' + meshOutputGroup.groupName +
 					'\n\t\tIndex: ' + meshOutputGroup.index +
@@ -1036,6 +1061,7 @@ OBJLoader2Parser.prototype = {
 			}
 
 		}
+
 		this.outputObjectCount ++;
 		this.callbacks.onAssetAvailable(
 			{

+ 2 - 0
examples/jsm/loaders/obj2/bridge/MtlObjBridge.js

@@ -31,12 +31,14 @@ const MtlObjBridge = {
 	addMaterialsFromMtlLoader: function ( materialCreator ) {
 
 		let newMaterials = {};
+
 		if ( materialCreator instanceof MTLLoader.MaterialCreator ) {
 
 			materialCreator.preload();
 			newMaterials = materialCreator.materials;
 
 		}
+
 		return newMaterials;
 
 	}

+ 13 - 0
examples/jsm/loaders/obj2/shared/MaterialHandler.js

@@ -124,21 +124,26 @@ MaterialHandler.prototype = {
 		}
 
 		let materials = materialPayload.materials.serializedMaterials;
+
 		if ( materials !== undefined && materials !== null && Object.keys( materials ).length > 0 ) {
 
 			let loader = new MaterialLoader();
 			let materialJson;
+
 			for ( materialName in materials ) {
 
 				materialJson = materials[ materialName ];
+
 				if ( materialJson !== undefined && materialJson !== null ) {
 
 					material = loader.parse( materialJson );
+
 					if ( this.logging.enabled ) {
 
 						console.info( 'De-serialized material with name "' + materialName + '" will be added.' );
 
 					}
+
 					this.materials[ materialName ] = material;
 					newMaterials[ materialName ] = material;
 
@@ -147,6 +152,7 @@ MaterialHandler.prototype = {
 			}
 
 		}
+
 		materials = materialPayload.materials.runtimeMaterials;
 		newMaterials = this.addMaterials( materials, true, newMaterials );
 
@@ -168,27 +174,32 @@ MaterialHandler.prototype = {
 			newMaterials = {};
 
 		}
+
 		if ( materials !== undefined && materials !== null && Object.keys( materials ).length > 0 ) {
 
 			let material;
 			let existingMaterial;
 			let add;
+
 			for ( let materialName in materials ) {
 
 				material = materials[ materialName ];
 				add = overrideExisting === true;
+
 				if ( ! add ) {
 
 					existingMaterial = this.materials[ materialName ];
 					add = ( existingMaterial === null || existingMaterial === undefined );
 
 				}
+
 				if ( add ) {
 
 					this.materials[ materialName ] = material;
 					newMaterials[ materialName ] = material;
 
 				}
+
 				if ( this.logging.enabled && this.logging.debug ) {
 
 					console.info( 'Material with name "' + materialName + '" was added.' );
@@ -204,6 +215,7 @@ MaterialHandler.prototype = {
 			this.callbacks.onLoadMaterials( newMaterials );
 
 		}
+
 		return newMaterials;
 
 	},
@@ -239,6 +251,7 @@ MaterialHandler.prototype = {
 
 		let materialsJSON = {};
 		let material;
+
 		for ( let materialName in this.materials ) {
 
 			material = this.materials[ materialName ];

+ 14 - 0
examples/jsm/loaders/obj2/shared/MeshReceiver.js

@@ -62,6 +62,7 @@ MeshReceiver.prototype = {
 			this.callbacks.onProgress = onProgress;
 
 		}
+
 		if ( onMeshAlter !== null && onMeshAlter !== undefined && onMeshAlter instanceof Function ) {
 
 			this.callbacks.onMeshAlter = onMeshAlter;
@@ -87,16 +88,19 @@ MeshReceiver.prototype = {
 			bufferGeometry.setAttribute( 'position', new BufferAttribute( new Float32Array( buffers.vertices ), 3 ) );
 
 		}
+
 		if ( buffers.indices !== undefined && buffers.indices !== null ) {
 
 			bufferGeometry.setIndex( new BufferAttribute( new Uint32Array( buffers.indices ), 1 ) );
 
 		}
+
 		if ( buffers.colors !== undefined && buffers.colors !== null ) {
 
 			bufferGeometry.setAttribute( 'color', new BufferAttribute( new Float32Array( buffers.colors ), 3 ) );
 
 		}
+
 		if ( buffers.normals !== undefined && buffers.normals !== null ) {
 
 			bufferGeometry.setAttribute( 'normal', new BufferAttribute( new Float32Array( buffers.normals ), 3 ) );
@@ -106,16 +110,19 @@ MeshReceiver.prototype = {
 			bufferGeometry.computeVertexNormals();
 
 		}
+
 		if ( buffers.uvs !== undefined && buffers.uvs !== null ) {
 
 			bufferGeometry.setAttribute( 'uv', new BufferAttribute( new Float32Array( buffers.uvs ), 2 ) );
 
 		}
+
 		if ( buffers.skinIndex !== undefined && buffers.skinIndex !== null ) {
 
 			bufferGeometry.setAttribute( 'skinIndex', new BufferAttribute( new Uint16Array( buffers.skinIndex ), 4 ) );
 
 		}
+
 		if ( buffers.skinWeight !== undefined && buffers.skinWeight !== null ) {
 
 			bufferGeometry.setAttribute( 'skinWeight', new BufferAttribute( new Float32Array( buffers.skinWeight ), 4 ) );
@@ -126,6 +133,7 @@ MeshReceiver.prototype = {
 		let materialNames = meshPayload.materials.materialNames;
 		let createMultiMaterial = meshPayload.materials.multiMaterial;
 		let multiMaterials = [];
+
 		for ( key in materialNames ) {
 
 			materialName = materialNames[ key ];
@@ -133,6 +141,7 @@ MeshReceiver.prototype = {
 			if ( createMultiMaterial ) multiMaterials.push( material );
 
 		}
+
 		if ( createMultiMaterial ) {
 
 			material = multiMaterials;
@@ -182,11 +191,13 @@ MeshReceiver.prototype = {
 					meshes.push( callbackOnMeshAlterResult.meshes[ i ] );
 
 				}
+
 				useOrgMesh = false;
 
 			}
 
 		}
+
 		if ( useOrgMesh ) {
 
 			if ( meshPayload.computeBoundingSphere ) bufferGeometry.computeBoundingSphere();
@@ -203,6 +214,7 @@ MeshReceiver.prototype = {
 				mesh = new Points( bufferGeometry, material );
 
 			}
+
 			mesh.name = meshName;
 			meshes.push( mesh );
 
@@ -218,6 +230,7 @@ MeshReceiver.prototype = {
 				meshNames[ i ] = mesh.name;
 
 			}
+
 			progressMessage += ': Adding mesh(es) (' + meshNames.length + ': ' + meshNames + ') from input mesh: ' + meshName;
 			progressMessage += ' (' + ( meshPayload.progress.numericalValue * 100 ).toFixed( 2 ) + '%)';
 
@@ -227,6 +240,7 @@ MeshReceiver.prototype = {
 			progressMessage += ' (' + ( meshPayload.progress.numericalValue * 100 ).toFixed( 2 ) + '%)';
 
 		}
+
 		if ( this.callbacks.onProgress ) {
 
 			this.callbacks.onProgress( 'progress', progressMessage, meshPayload.progress.numericalValue );

+ 13 - 0
examples/jsm/loaders/obj2/utils/CodeSerializer.js

@@ -43,11 +43,13 @@ const CodeSerializer = {
 			} else if ( typeof objectPart === 'function' ) {
 
 				funcTemp = overrideFunctions[ name ];
+
 				if ( funcTemp instanceof CodeSerializationInstruction && funcTemp.getName() === funcInstructions.getName() ) {
 
 					funcInstructions = funcTemp;
 
 				}
+
 				if ( ! funcInstructions.isRemoveCode() ) {
 
 					if ( isExtended ) {
@@ -65,10 +67,12 @@ const CodeSerializer = {
 			}
 
 		}
+
 		for ( let name in targetPrototype ) {
 
 			objectPart = targetPrototype[ name ];
 			funcInstructions = new CodeSerializationInstruction( name, fullObjectName + '.' + name );
+
 			if ( typeof objectPart === 'function' ) {
 
 				funcTemp = overrideFunctions[ name ];
@@ -81,6 +85,7 @@ const CodeSerializer = {
 					funcInstructions.setCode( objectPart.toString() );
 
 				}
+
 				if ( ! funcInstructions.isRemoveCode() ) {
 
 					objectFunctions.push( funcInstructions.getFullName() + ' = ' + funcInstructions.getCode() + ';\n\n' );
@@ -103,6 +108,7 @@ const CodeSerializer = {
 					funcInstructions.setCode( objectPart );
 
 				}
+
 				if ( ! funcInstructions.isRemoveCode() ) {
 
 					objectProperties.push( funcInstructions.getFullName() + ' = ' + funcInstructions.getCode() + ';\n' );
@@ -112,12 +118,15 @@ const CodeSerializer = {
 			}
 
 		}
+
 		let objectString = constructorString + '\n\n';
+
 		if ( isExtended ) {
 
 			objectString += fullObjectName + '.prototype = Object.create( ' + basePrototypeName + '.prototype );\n';
 
 		}
+
 		objectString += fullObjectName + '.prototype.constructor = ' + fullObjectName + ';\n';
 		objectString += '\n\n';
 
@@ -126,6 +135,7 @@ const CodeSerializer = {
 			objectString += objectProperties[ i ];
 
 		}
+
 		objectString += '\n\n';
 
 		for ( i = 0; i < objectFunctions.length; i ++ ) {
@@ -133,6 +143,7 @@ const CodeSerializer = {
 			objectString += objectFunctions[ i ];
 
 		}
+
 		objectString += '\n\n';
 
 		if ( isExtended ) {
@@ -151,9 +162,11 @@ const CodeSerializer = {
 				objectString += prototypeFunctions[ i ];
 
 			}
+
 			objectString += '\n};';
 
 		}
+
 		objectString += '\n\n';
 
 		return objectString;

+ 18 - 0
examples/jsm/loaders/obj2/worker/main/WorkerExecutionSupport.js

@@ -127,6 +127,7 @@ const WorkerExecutionSupport = function () {
 	this._reset();
 
 };
+
 WorkerExecutionSupport.WORKER_SUPPORT_VERSION = '3.2.0';
 console.info( 'Using WorkerSupport version: ' + WorkerExecutionSupport.WORKER_SUPPORT_VERSION );
 
@@ -148,6 +149,7 @@ WorkerExecutionSupport.prototype = {
 			scope._terminate();
 
 		};
+
 		this.worker = {
 			native: null,
 			jsmWorker: false,
@@ -213,9 +215,11 @@ WorkerExecutionSupport.prototype = {
 				console.info( 'Worker is terminated immediately as it is not running!' );
 
 			}
+
 			this._terminate();
 
 		}
+
 		return this;
 
 	},
@@ -233,11 +237,13 @@ WorkerExecutionSupport.prototype = {
 			this.worker.callbacks.onAssetAvailable = onAssetAvailable;
 
 		}
+
 		if ( onLoad !== undefined && onLoad !== null ) {
 
 			this.worker.callbacks.onLoad = onLoad;
 
 		}
+
 		this._verifyCallbacks();
 
 	},
@@ -370,6 +376,7 @@ WorkerExecutionSupport.prototype = {
 			}
 
 		}
+
 		return workerAvailable;
 
 	},
@@ -385,6 +392,7 @@ WorkerExecutionSupport.prototype = {
 			scope._receiveWorkerMessage( event );
 
 		};
+
 		this.worker.native.onmessage = scopedReceiveWorkerMessage;
 		this.worker.native.onerror = scopedReceiveWorkerMessage;
 		if ( defaultGeometryType !== undefined && defaultGeometryType !== null ) {
@@ -425,6 +433,7 @@ WorkerExecutionSupport.prototype = {
 			return;
 
 		}
+
 		let payload = event.data;
 		let workerRunnerName = this.worker.workerRunner.name;
 		switch ( payload.cmd ) {
@@ -441,6 +450,7 @@ WorkerExecutionSupport.prototype = {
 					this.worker.callbacks.onLoad( payload.msg );
 
 				}
+
 				if ( this.worker.terminateWorkerOnLoad ) {
 
 					if ( this.worker.logging.enabled ) {
@@ -448,9 +458,11 @@ WorkerExecutionSupport.prototype = {
 						console.info( 'WorkerSupport [' + workerRunnerName + ']: Run is complete. Terminating application on request!' );
 
 					}
+
 					this.worker.callbacks.terminate();
 
 				}
+
 				break;
 
 			case 'error':
@@ -462,6 +474,7 @@ WorkerExecutionSupport.prototype = {
 					this.worker.callbacks.onLoad( payload.msg );
 
 				}
+
 				if ( this.worker.terminateWorkerOnLoad ) {
 
 					if ( this.worker.logging.enabled ) {
@@ -469,9 +482,11 @@ WorkerExecutionSupport.prototype = {
 						console.info( 'WorkerSupport [' + workerRunnerName + ']: Run reported error. Terminating application on request!' );
 
 					}
+
 					this.worker.callbacks.terminate();
 
 				}
+
 				break;
 
 			default:
@@ -516,6 +531,7 @@ WorkerExecutionSupport.prototype = {
 			this.worker.started = true;
 
 		}
+
 		return ready;
 
 	},
@@ -536,11 +552,13 @@ WorkerExecutionSupport.prototype = {
 					transferables.push( this.worker.queuedMessage.payload.data.input );
 
 				}
+
 				if ( this.worker.queuedMessage.transferables.length > 0 ) {
 
 					transferables = transferables.concat( this.worker.queuedMessage.transferables );
 
 				}
+
 				this.worker.native.postMessage( this.worker.queuedMessage.payload, transferables );
 
 			} else {

+ 4 - 0
examples/jsm/loaders/obj2/worker/parallel/WorkerRunner.js

@@ -65,6 +65,7 @@ DefaultWorkerPayloadHandler.prototype = {
 			this.logging.debug = payload.logging.debug === true;
 
 		}
+
 		if ( payload.cmd === 'parse' ) {
 
 			let scope = this;
@@ -87,6 +88,7 @@ DefaultWorkerPayloadHandler.prototype = {
 				parser.setLogging( this.logging.enabled, this.logging.debug );
 
 			}
+
 			let objectManipulator = new ObjectManipulator();
 			objectManipulator.applyProperties( parser, payload.params, false );
 			objectManipulator.applyProperties( parser, callbacks, false );
@@ -103,6 +105,7 @@ DefaultWorkerPayloadHandler.prototype = {
 				parser[ executeFunctionName ]( arraybuffer, payload.data.options );
 
 			}
+
 			if ( this.logging.enabled ) console.log( 'WorkerRunner: Run complete!' );
 
 			self.postMessage( {
@@ -134,6 +137,7 @@ const WorkerRunner = function ( payloadHandler ) {
 		scope.processMessage( event.data );
 
 	};
+
 	self.addEventListener( 'message', scopedRunner, false );
 
 };

+ 19 - 1
examples/jsm/math/SimplexNoise.js

@@ -28,13 +28,16 @@ var SimplexNoise = function ( r ) {
 	     [ - 1, 1, 1, 0 ], [ - 1, 1, - 1, 0 ], [ - 1, - 1, 1, 0 ], [ - 1, - 1, - 1, 0 ]];
 
 	this.p = [];
+
 	for ( var i = 0; i < 256; i ++ ) {
 
 		this.p[ i ] = Math.floor( r.random() * 256 );
 
 	}
+
 	// To remove the need for index wrapping, double the permutation table length
 	this.perm = [];
+
 	for ( var i = 0; i < 512; i ++ ) {
 
 		this.perm[ i ] = this.p[ i & 255 ];
@@ -101,6 +104,7 @@ SimplexNoise.prototype.noise = function ( xin, yin ) {
 		i1 = 0; j1 = 1;
 
 	} // upper triangle, YX order: (0,0)->(0,1)->(1,1)
+
 	// A step of (1,0) in (i,j) means a step of (1-c,-c) in (x,y), and
 	// a step of (0,1) in (i,j) means a step of (-c,1-c) in (x,y), where
 	// c = (3-sqrt(3))/6
@@ -123,6 +127,7 @@ SimplexNoise.prototype.noise = function ( xin, yin ) {
 		n0 = t0 * t0 * this.dot( this.grad3[ gi0 ], x0, y0 ); // (x,y) of grad3 used for 2D gradient
 
 	}
+
 	var t1 = 0.5 - x1 * x1 - y1 * y1;
 	if ( t1 < 0 ) n1 = 0.0;
 	else {
@@ -131,6 +136,7 @@ SimplexNoise.prototype.noise = function ( xin, yin ) {
 		n1 = t1 * t1 * this.dot( this.grad3[ gi1 ], x1, y1 );
 
 	}
+
 	var t2 = 0.5 - x2 * x2 - y2 * y2;
 	if ( t2 < 0 ) n2 = 0.0;
 	else {
@@ -139,6 +145,7 @@ SimplexNoise.prototype.noise = function ( xin, yin ) {
 		n2 = t2 * t2 * this.dot( this.grad3[ gi2 ], x2, y2 );
 
 	}
+
 	// Add contributions from each corner to get the final noise value.
 	// The result is scaled to return values in the interval [-1,1].
 	return 70.0 * ( n0 + n1 + n2 );
@@ -208,6 +215,7 @@ SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		} // Y X Z order
 
 	}
+
 	// A step of (1,0,0) in (i,j,k) means a step of (1-c,-c,-c) in (x,y,z),
 	// a step of (0,1,0) in (i,j,k) means a step of (-c,1-c,-c) in (x,y,z), and
 	// a step of (0,0,1) in (i,j,k) means a step of (-c,-c,1-c) in (x,y,z), where
@@ -238,6 +246,7 @@ SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n0 = t0 * t0 * this.dot3( this.grad3[ gi0 ], x0, y0, z0 );
 
 	}
+
 	var t1 = 0.6 - x1 * x1 - y1 * y1 - z1 * z1;
 	if ( t1 < 0 ) n1 = 0.0;
 	else {
@@ -246,6 +255,7 @@ SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n1 = t1 * t1 * this.dot3( this.grad3[ gi1 ], x1, y1, z1 );
 
 	}
+
 	var t2 = 0.6 - x2 * x2 - y2 * y2 - z2 * z2;
 	if ( t2 < 0 ) n2 = 0.0;
 	else {
@@ -254,6 +264,7 @@ SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n2 = t2 * t2 * this.dot3( this.grad3[ gi2 ], x2, y2, z2 );
 
 	}
+
 	var t3 = 0.6 - x3 * x3 - y3 * y3 - z3 * z3;
 	if ( t3 < 0 ) n3 = 0.0;
 	else {
@@ -262,6 +273,7 @@ SimplexNoise.prototype.noise3d = function ( xin, yin, zin ) {
 		n3 = t3 * t3 * this.dot3( this.grad3[ gi3 ], x3, y3, z3 );
 
 	}
+
 	// Add contributions from each corner to get the final noise value.
 	// The result is scaled to stay just inside [-1,1]
 	return 32.0 * ( n0 + n1 + n2 + n3 );
@@ -368,6 +380,7 @@ SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n0 = t0 * t0 * this.dot4( grad4[ gi0 ], x0, y0, z0, w0 );
 
 	}
+
 	var t1 = 0.6 - x1 * x1 - y1 * y1 - z1 * z1 - w1 * w1;
 	if ( t1 < 0 ) n1 = 0.0;
 	else {
@@ -376,6 +389,7 @@ SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n1 = t1 * t1 * this.dot4( grad4[ gi1 ], x1, y1, z1, w1 );
 
 	}
+
 	var t2 = 0.6 - x2 * x2 - y2 * y2 - z2 * z2 - w2 * w2;
 	if ( t2 < 0 ) n2 = 0.0;
 	else {
@@ -383,7 +397,9 @@ SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		t2 *= t2;
 		n2 = t2 * t2 * this.dot4( grad4[ gi2 ], x2, y2, z2, w2 );
 
-	} var t3 = 0.6 - x3 * x3 - y3 * y3 - z3 * z3 - w3 * w3;
+	}
+
+	var t3 = 0.6 - x3 * x3 - y3 * y3 - z3 * z3 - w3 * w3;
 	if ( t3 < 0 ) n3 = 0.0;
 	else {
 
@@ -391,6 +407,7 @@ SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n3 = t3 * t3 * this.dot4( grad4[ gi3 ], x3, y3, z3, w3 );
 
 	}
+
 	var t4 = 0.6 - x4 * x4 - y4 * y4 - z4 * z4 - w4 * w4;
 	if ( t4 < 0 ) n4 = 0.0;
 	else {
@@ -399,6 +416,7 @@ SimplexNoise.prototype.noise4d = function ( x, y, z, w ) {
 		n4 = t4 * t4 * this.dot4( grad4[ gi4 ], x4, y4, z4, w4 );
 
 	}
+
 	// Sum up and scale the result to cover the range [-1,1]
 	return 27.0 * ( n0 + n1 + n2 + n3 + n4 );
 

+ 2 - 0
examples/jsm/misc/ConvexObjectBreaker.js

@@ -396,6 +396,7 @@ ConvexObjectBreaker.prototype = {
 				radius1 = Math.max( radius1, p.x, p.y, p.z );
 
 			}
+
 			this.tempCM1.add( object.position );
 
 		}
@@ -415,6 +416,7 @@ ConvexObjectBreaker.prototype = {
 				radius2 = Math.max( radius2, p.x, p.y, p.z );
 
 			}
+
 			this.tempCM2.add( object.position );
 
 		}

+ 3 - 0
examples/jsm/misc/GPUComputationRenderer.js

@@ -189,6 +189,7 @@ var GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
 			// Adds dependencies uniforms to the ShaderMaterial
 			var material = variable.material;
 			var uniforms = material.uniforms;
+
 			if ( variable.dependencies !== null ) {
 
 				for ( var d = 0; d < variable.dependencies.length; d ++ ) {
@@ -209,6 +210,7 @@ var GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
 							}
 
 						}
+
 						if ( ! found ) {
 
 							return "Variable dependency not found. Variable=" + variable.name + ", dependency=" + depVar.name;
@@ -282,6 +284,7 @@ var GPUComputationRenderer = function ( sizeX, sizeY, renderer ) {
 		materialShader.defines.resolution = 'vec2( ' + sizeX.toFixed( 1 ) + ', ' + sizeY.toFixed( 1 ) + " )";
 
 	}
+
 	this.addResolutionDefine = addResolutionDefine;
 
 

+ 5 - 0
examples/jsm/misc/Ocean.js

@@ -43,6 +43,7 @@ var Ocean = function ( renderer, camera, scene, options ) {
 		return value !== undefined ? value : defaultValue;
 
 	}
+
 	options = options || {};
 	this.clearColor = optionalParameter( options.CLEAR_COLOR, [ 1.0, 1.0, 1.0, 0.0 ] );
 	this.geometryOrigin = optionalParameter( options.GEOMETRY_ORIGIN, [ - 1000.0, - 1000.0 ] );
@@ -295,6 +296,7 @@ Ocean.prototype.renderWavePhase = function () {
 
 	this.scene.overrideMaterial = this.materialPhase;
 	this.screenQuad.material = this.materialPhase;
+
 	if ( this.initial ) {
 
 		this.materialPhase.uniforms.u_phases.value = this.pingPhaseTexture;
@@ -305,6 +307,7 @@ Ocean.prototype.renderWavePhase = function () {
 		this.materialPhase.uniforms.u_phases.value = this.pingPhase ? this.pingPhaseFramebuffer.texture : this.pongPhaseFramebuffer.texture;
 
 	}
+
 	this.materialPhase.uniforms.u_deltaTime.value = this.deltaTime;
 	this.materialPhase.uniforms.u_size.value = this.size;
 	this.renderer.setRenderTarget( this.pingPhase ? this.pongPhaseFramebuffer : this.pingPhaseFramebuffer );
@@ -362,7 +365,9 @@ Ocean.prototype.renderSpectrumFFT = function () {
 		}
 
 	}
+
 	this.scene.overrideMaterial = this.materialOceanVertical;
+
 	for ( var i = iterations; i < iterations * 2; i ++ ) {
 
 		if ( i === iterations * 2 - 1 ) {

+ 2 - 0
examples/jsm/misc/Volume.js

@@ -442,6 +442,7 @@ Volume.prototype = {
 		var datasize = this.data.length;
 
 		var i = 0;
+
 		for ( i = 0; i < datasize; i ++ ) {
 
 			if ( ! isNaN( this.data[ i ] ) ) {
@@ -453,6 +454,7 @@ Volume.prototype = {
 			}
 
 		}
+
 		this.min = min;
 		this.max = max;
 

+ 1 - 0
examples/jsm/misc/VolumeSlice.js

@@ -179,6 +179,7 @@ VolumeSlice.prototype = {
 			}
 
 		}
+
 		ctx.putImageData( imgData, 0, 0 );
 		this.ctx.drawImage( canvas, 0, 0, iLength, jLength, 0, 0, this.canvas.width, this.canvas.height );
 

+ 1 - 0
examples/jsm/nodes/materials/nodes/PhongNode.js

@@ -316,6 +316,7 @@ PhongNode.prototype.build = function ( builder ) {
 
 		}
 	*/
+
 		if ( alpha ) {
 
 			output.push( "gl_FragColor = vec4( outgoingLight, " + alpha.result + " );" );

+ 7 - 0
examples/jsm/objects/Fire.js

@@ -107,6 +107,7 @@ var Fire = function ( geometry, options ) {
 						this.sourceData[ stride ] = Math.min( Math.max( density, 0.0 ), 1.0 ) * 255;
 
 					}
+
 					if ( windX != null ) {
 
 						var wind = Math.min( Math.max( windX, - 1.0 ), 1.0 );
@@ -114,6 +115,7 @@ var Fire = function ( geometry, options ) {
 						this.sourceData[ stride + 1 ] = wind;
 
 					}
+
 					if ( windY != null ) {
 
 						var wind = Math.min( Math.max( windY, - 1.0 ), 1.0 );
@@ -291,6 +293,7 @@ var Fire = function ( geometry, options ) {
 		shader = Fire.ColorShader;
 
 	}
+
 	this.material = new ShaderMaterial( {
 		uniforms: shader.uniforms,
 		vertexShader: shader.vertexShader,
@@ -452,11 +455,13 @@ var Fire = function ( geometry, options ) {
 	this.onBeforeRender = function ( renderer ) {
 
 		var delta = this.clock.getDelta();
+
 		if ( delta > 0.1 ) {
 
 			delta = 0.1;
 
 		}
+
 		var dt = delta * ( this.speed * 0.1 );
 
 		this.configShaders( dt );
@@ -478,11 +483,13 @@ var Fire = function ( geometry, options ) {
 		this.renderSource( renderer );
 
 		this.clearDiffuse();
+
 		for ( var i = 0; i < 21; i ++ ) {
 
 			this.renderDiffuse( renderer );
 
 		}
+
 		this.configShaders( dt );
 		this.renderDiffuse( renderer );
 

+ 10 - 0
examples/jsm/postprocessing/AdaptiveToneMappingPass.js

@@ -206,11 +206,13 @@ AdaptiveToneMappingPass.prototype = Object.assign( Object.create( Pass.prototype
 			this.luminanceRT.dispose();
 
 		}
+
 		if ( this.currentLuminanceRT ) {
 
 			this.currentLuminanceRT.dispose();
 
 		}
+
 		if ( this.previousLuminanceRT ) {
 
 			this.previousLuminanceRT.dispose();
@@ -239,6 +241,7 @@ AdaptiveToneMappingPass.prototype = Object.assign( Object.create( Pass.prototype
 			this.materialToneMap.uniforms.luminanceMap.value = this.luminanceRT.texture;
 
 		}
+
 		//Put something in the adaptive luminance texture so that the scene can render initially
 		this.fsQuad.material = new MeshBasicMaterial( { color: 0x777777 } );
 		this.materialLuminance.needsUpdate = true;
@@ -265,6 +268,7 @@ AdaptiveToneMappingPass.prototype = Object.assign( Object.create( Pass.prototype
 			this.materialToneMap.uniforms.luminanceMap.value = null;
 
 		}
+
 		this.materialToneMap.needsUpdate = true;
 
 	},
@@ -327,31 +331,37 @@ AdaptiveToneMappingPass.prototype = Object.assign( Object.create( Pass.prototype
 			this.luminanceRT.dispose();
 
 		}
+
 		if ( this.previousLuminanceRT ) {
 
 			this.previousLuminanceRT.dispose();
 
 		}
+
 		if ( this.currentLuminanceRT ) {
 
 			this.currentLuminanceRT.dispose();
 
 		}
+
 		if ( this.materialLuminance ) {
 
 			this.materialLuminance.dispose();
 
 		}
+
 		if ( this.materialAdaptiveLum ) {
 
 			this.materialAdaptiveLum.dispose();
 
 		}
+
 		if ( this.materialCopy ) {
 
 			this.materialCopy.dispose();
 
 		}
+
 		if ( this.materialToneMap ) {
 
 			this.materialToneMap.dispose();

+ 1 - 1
examples/jsm/renderers/CSS3DRenderer.js

@@ -216,7 +216,7 @@ var CSS3DRenderer = function () {
 				cache.objects.set( object, objectData );
 
 			}
-			
+
 			element.style.display = object.visible ? '' : 'none';
 
 			if ( element.parentNode !== cameraElement ) {

+ 4 - 4
examples/jsm/shaders/ACESFilmicToneMappingShader.js

@@ -49,14 +49,14 @@ var ACESFilmicToneMappingShader = {
 
 		'vec3 ACESFilmicToneMapping( vec3 color ) {',
 
-			// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
+		// sRGB => XYZ => D65_2_D60 => AP1 => RRT_SAT
 		'	const mat3 ACESInputMat = mat3(',
 		'		vec3( 0.59719, 0.07600, 0.02840 ),', // transposed from source
 		'		vec3( 0.35458, 0.90834, 0.13383 ),',
 		'		vec3( 0.04823, 0.01566, 0.83777 )',
 		'	);',
 
-			// ODT_SAT => XYZ => D60_2_D65 => sRGB
+		// ODT_SAT => XYZ => D60_2_D65 => sRGB
 		'	const mat3 ACESOutputMat = mat3(',
 		'		vec3(  1.60475, -0.10208, -0.00327 ),', // transposed from source
 		'		vec3( -0.53108,  1.10813, -0.07276 ),',
@@ -65,12 +65,12 @@ var ACESFilmicToneMappingShader = {
 
 		'	color = ACESInputMat * color;',
 
-			// Apply RRT and ODT
+		// Apply RRT and ODT
 		'	color = RRTAndODTFit( color );',
 
 		'	color = ACESOutputMat * color;',
 
-			// Clamp to [0, 1]
+		// Clamp to [0, 1]
 		'	return saturate( color );',
 
 		'}',

+ 2 - 2
examples/jsm/utils/BufferGeometryUtils.js

@@ -240,8 +240,8 @@ var BufferGeometryUtils = {
 
 			if ( attributesCount !== attributesUsed.size ) {
 
-					console.error( 'THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index ' + i + '. Make sure all geometries have the same number of attributes.' );
-					return null;
+				console.error( 'THREE.BufferGeometryUtils: .mergeBufferGeometries() failed with geometry at index ' + i + '. Make sure all geometries have the same number of attributes.' );
+				return null;
 
 			}
 

+ 4 - 0
examples/jsm/utils/GeometryCompressionUtils.js

@@ -158,16 +158,19 @@ var GeometryCompressionUtils = {
 			mesh.material.defines.USE_PACKED_NORMAL = 0;
 
 		}
+
 		if ( encodeMethod == "OCT1Byte" ) {
 
 			mesh.material.defines.USE_PACKED_NORMAL = 1;
 
 		}
+
 		if ( encodeMethod == "OCT2Byte" ) {
 
 			mesh.material.defines.USE_PACKED_NORMAL = 1;
 
 		}
+
 		if ( encodeMethod == "DEFAULT" ) {
 
 			mesh.material.defines.USE_PACKED_NORMAL = 2;
@@ -471,6 +474,7 @@ var GeometryCompressionUtils = {
 					] );
 
 				}
+
 				if ( bytes == 2 ) {
 
 					return new Int16Array( [

+ 38 - 59
package-lock.json

@@ -684,38 +684,39 @@
       }
     },
     "dom-serializer": {
-      "version": "0.1.1",
-      "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.1.1.tgz",
-      "integrity": "sha512-l0IU0pPzLWSHBcieZbpOKgkIn3ts3vAh7ZuFyXNwJxJXk/c4Gwj9xaTJwIDVQCXawWD0qb3IzMGH5rglQaO0XA==",
+      "version": "0.2.2",
+      "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz",
+      "integrity": "sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g==",
       "dev": true,
       "requires": {
-        "domelementtype": "^1.3.0",
-        "entities": "^1.1.1"
+        "domelementtype": "^2.0.1",
+        "entities": "^2.0.0"
       }
     },
     "domelementtype": {
-      "version": "1.3.1",
-      "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz",
-      "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==",
+      "version": "2.0.1",
+      "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.1.tgz",
+      "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==",
       "dev": true
     },
     "domhandler": {
-      "version": "2.4.2",
-      "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.4.2.tgz",
-      "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==",
+      "version": "3.0.0",
+      "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-3.0.0.tgz",
+      "integrity": "sha512-eKLdI5v9m67kbXQbJSNn1zjh0SDzvzWVWtX+qEI3eMjZw8daH9k8rlj1FZY9memPwjiskQFbe7vHVVJIAqoEhw==",
       "dev": true,
       "requires": {
-        "domelementtype": "1"
+        "domelementtype": "^2.0.1"
       }
     },
     "domutils": {
-      "version": "1.7.0",
-      "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.7.0.tgz",
-      "integrity": "sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg==",
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.0.0.tgz",
+      "integrity": "sha512-n5SelJ1axbO636c2yUtOGia/IcJtVtlhQbFiVDBZHKV5ReJO1ViX7sFEemtuyoAnBxk5meNSYgA8V4s0271efg==",
       "dev": true,
       "requires": {
-        "dom-serializer": "0",
-        "domelementtype": "1"
+        "dom-serializer": "^0.2.1",
+        "domelementtype": "^2.0.1",
+        "domhandler": "^3.0.0"
       }
     },
     "dtype": {
@@ -757,9 +758,9 @@
       "dev": true
     },
     "entities": {
-      "version": "1.1.2",
-      "resolved": "https://registry.npmjs.org/entities/-/entities-1.1.2.tgz",
-      "integrity": "sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w==",
+      "version": "2.0.0",
+      "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz",
+      "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==",
       "dev": true
     },
     "error-ex": {
@@ -831,18 +832,18 @@
       }
     },
     "eslint-config-mdcs": {
-      "version": "4.2.3",
-      "resolved": "https://registry.npmjs.org/eslint-config-mdcs/-/eslint-config-mdcs-4.2.3.tgz",
-      "integrity": "sha512-pSiX8roIR7KVZeKBrzQUiRAr2jxLn0H8WUHHCgq2TdoVGSLk/GRNeB78WG1IZnTwENgtSgDtMXq7/UVDBXls+Q==",
+      "version": "5.0.0",
+      "resolved": "https://registry.npmjs.org/eslint-config-mdcs/-/eslint-config-mdcs-5.0.0.tgz",
+      "integrity": "sha512-d4lzeT/sQ3TkI69hd+N/dtQ15g3GrbIboTfCAw6FaDQTLjWK2O3+dNfOOfkAC5TlwyU9BxztR1TE+x8iSzyuPw==",
       "dev": true
     },
     "eslint-plugin-html": {
-      "version": "6.0.0",
-      "resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-6.0.0.tgz",
-      "integrity": "sha512-PQcGippOHS+HTbQCStmH5MY1BF2MaU8qW/+Mvo/8xTa/ioeMXdSP+IiaBw2+nh0KEMfYQKuTz1Zo+vHynjwhbg==",
+      "version": "6.0.2",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-html/-/eslint-plugin-html-6.0.2.tgz",
+      "integrity": "sha512-Ik/z32UteKLo8GEfwNqVKcJ/WOz/be4h8N5mbMmxxnZ+9aL9XczOXQFz/bGu+nAGVoRg8CflldxJhONFpqlrxw==",
       "dev": true,
       "requires": {
-        "htmlparser2": "^3.10.1"
+        "htmlparser2": "^4.1.0"
       }
     },
     "eslint-scope": {
@@ -1289,17 +1290,15 @@
       "dev": true
     },
     "htmlparser2": {
-      "version": "3.10.1",
-      "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.10.1.tgz",
-      "integrity": "sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ==",
+      "version": "4.1.0",
+      "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-4.1.0.tgz",
+      "integrity": "sha512-4zDq1a1zhE4gQso/c5LP1OtrhYTncXNSpvJYtWJBtXAETPlMfi3IFNjGuQbYLuVY4ZR0QMqRVvo4Pdy9KLyP8Q==",
       "dev": true,
       "requires": {
-        "domelementtype": "^1.3.1",
-        "domhandler": "^2.3.0",
-        "domutils": "^1.5.1",
-        "entities": "^1.1.1",
-        "inherits": "^2.0.1",
-        "readable-stream": "^3.1.1"
+        "domelementtype": "^2.0.1",
+        "domhandler": "^3.0.0",
+        "domutils": "^2.0.0",
+        "entities": "^2.0.0"
       }
     },
     "http-proxy": {
@@ -1928,7 +1927,7 @@
     },
     "os-tmpdir": {
       "version": "1.0.2",
-      "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
+      "resolved": "http://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
       "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=",
       "dev": true
     },
@@ -1995,7 +1994,7 @@
     },
     "path-is-absolute": {
       "version": "1.0.1",
-      "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
+      "resolved": "http://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",
       "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=",
       "dev": true
     },
@@ -2212,17 +2211,6 @@
         "pify": "^3.0.0"
       }
     },
-    "readable-stream": {
-      "version": "3.4.0",
-      "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz",
-      "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==",
-      "dev": true,
-      "requires": {
-        "inherits": "^2.0.3",
-        "string_decoder": "^1.1.1",
-        "util-deprecate": "^1.0.1"
-      }
-    },
     "regenerate": {
       "version": "1.4.0",
       "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.0.tgz",
@@ -2589,15 +2577,6 @@
         "strip-ansi": "^5.1.0"
       }
     },
-    "string_decoder": {
-      "version": "1.2.0",
-      "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.2.0.tgz",
-      "integrity": "sha512-6YqyX6ZWEYguAxgZzHGL7SsCeGx3V2TtOTqZz1xSTSWnqsbWwbptafNyvf/ACquZUXV3DANr5BDIwNYe1mN42w==",
-      "dev": true,
-      "requires": {
-        "safe-buffer": "~5.1.0"
-      }
-    },
     "strip-ansi": {
       "version": "5.2.0",
       "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz",
@@ -2712,7 +2691,7 @@
     },
     "through": {
       "version": "2.3.8",
-      "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
+      "resolved": "http://registry.npmjs.org/through/-/through-2.3.8.tgz",
       "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=",
       "dev": true
     },

+ 2 - 2
package.json

@@ -81,8 +81,8 @@
     "concurrently": "^5.1.0",
     "cross-env": "^7.0.2",
     "eslint": "^6.8.0",
-    "eslint-config-mdcs": "^4.2.3",
-    "eslint-plugin-html": "^6.0.0",
+    "eslint-config-mdcs": "^5.0.0",
+    "eslint-plugin-html": "^6.0.2",
     "failonlyreporter": "^1.0.0",
     "google-closure-compiler": "20200224.0.0",
     "http-server": "^0.12.1",

+ 2 - 0
src/Three.Legacy.js

@@ -126,6 +126,7 @@ export function MultiMaterial( materials ) {
 		return materials.slice();
 
 	};
+
 	return materials;
 
 }
@@ -1312,6 +1313,7 @@ Object.assign( BufferGeometry.prototype, {
 			console.warn( 'THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset.' );
 
 		}
+
 		console.warn( 'THREE.BufferGeometry: .addDrawCall() is now .addGroup().' );
 		this.addGroup( start, count );
 

+ 1 - 0
src/core/Object3D.js

@@ -801,6 +801,7 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ),
 				values.push( data );
 
 			}
+
 			return values;
 
 		}

+ 3 - 0
src/extras/core/ShapePath.js

@@ -110,6 +110,7 @@ Object.assign( ShapePath.prototype, {
 						edgeHighPt = inPolygon[ p ]; edgeDy = - edgeDy;
 
 					}
+
 					if ( ( inPt.y < edgeLowPt.y ) || ( inPt.y > edgeHighPt.y ) ) 		continue;
 
 					if ( inPt.y === edgeLowPt.y ) {
@@ -249,6 +250,7 @@ Object.assign( ShapePath.prototype, {
 						}
 
 					}
+
 					if ( hole_unassigned ) {
 
 						betterShapeHoles[ sIdx ].push( ho );
@@ -259,6 +261,7 @@ Object.assign( ShapePath.prototype, {
 
 			}
 			// console.log("ambiguous: ", ambiguous);
+
 			if ( toChange.length > 0 ) {
 
 				// console.log("to change: ", toChange);

+ 1 - 0
src/loaders/DataTextureLoader.js

@@ -61,6 +61,7 @@ DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ),
 				texture.format = texData.format;
 
 			}
+
 			if ( texData.type !== undefined ) {
 
 				texture.type = texData.type;

+ 2 - 0
src/textures/Texture.js

@@ -271,6 +271,7 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 						uv.x = uv.x - Math.floor( uv.x );
 
 					}
+
 					break;
 
 			}
@@ -302,6 +303,7 @@ Texture.prototype = Object.assign( Object.create( EventDispatcher.prototype ), {
 						uv.y = uv.y - Math.floor( uv.y );
 
 					}
+
 					break;
 
 			}