diff --git a/src/audio/Audio.js b/src/audio/Audio.js index 8a6aab7a80679685b2a7eef1df9e598d31d760c7..95e4e03ee5891b5164ff0a37479a5985b5f19147 100644 --- a/src/audio/Audio.js +++ b/src/audio/Audio.js @@ -286,7 +286,7 @@ Audio.prototype = Object.assign( Object.create( Object3D.prototype ), { return this.gain.gain.value; }, - + setVolume: function ( value ) { this.gain.gain.value = value; diff --git a/src/extras/ShapeUtils.js b/src/extras/ShapeUtils.js index ec891a2b54749eac77892aef6585e645abf785a1..e389323f2fb52854a9dae893e9ff860c6ac2d4d2 100644 --- a/src/extras/ShapeUtils.js +++ b/src/extras/ShapeUtils.js @@ -185,7 +185,7 @@ var ShapeUtils = { if ( indices ) return vertIndices; return result; - } + }; } )(), @@ -523,7 +523,7 @@ var ShapeUtils = { hIdx, nextIdx, intersection; for ( ihIdx = 0; ihIdx < indepHoles.length; ihIdx ++ ) { - chkHole = holes[ indepHoles[ ihIdx ]]; + chkHole = holes[ indepHoles[ ihIdx ] ]; for ( hIdx = 0; hIdx < chkHole.length; hIdx ++ ) { nextIdx = hIdx + 1; nextIdx %= chkHole.length; @@ -556,7 +556,7 @@ var ShapeUtils = { counter --; if ( counter < 0 ) { - console.log( "Infinite Loop! Holes left:" + indepHoles.length + ", Probably Hole outside Shape!" ); + console.log( 'THREE.ShapeUtils: Infinite Loop! Holes left:" + indepHoles.length + ", Probably Hole outside Shape!' ); break; } @@ -574,7 +574,7 @@ var ShapeUtils = { holeIdx = indepHoles[ h ]; // prevent multiple checks - cutKey = shapePt.x + ":" + shapePt.y + ":" + holeIdx; + cutKey = shapePt.x + ':' + shapePt.y + ':' + holeIdx; if ( failedCuts[ cutKey ] !== undefined ) continue; hole = holes[ holeIdx ]; @@ -639,11 +639,11 @@ var ShapeUtils = { for ( i = 0, il = allpoints.length; i < il; i ++ ) { - key = allpoints[ i ].x + ":" + allpoints[ i ].y; + key = allpoints[ i ].x + ':' + allpoints[ i ].y; if ( allPointsMap[ key ] !== undefined ) { - console.warn( "THREE.ShapeUtils: Duplicate point", key, i ); + console.warn( 'THREE.ShapeUtils: Duplicate point', key, i ); } @@ -665,7 +665,7 @@ var ShapeUtils = { for ( f = 0; f < 3; f ++ ) { - key = face[ f ].x + ":" + face[ f ].y; + key = face[ f ].x + ':' + face[ f ].y; index = allPointsMap[ key ]; diff --git a/src/helpers/Box3Helper.js b/src/helpers/Box3Helper.js index 528ae1f5a03762772d51950e9547fbaf5c8c99c5..1af4dd3765eb6ed06b11392d01133b4baadc9fbc 100644 --- a/src/helpers/Box3Helper.js +++ b/src/helpers/Box3Helper.js @@ -2,7 +2,6 @@ * @author WestLangley / http://github.com/WestLangley */ -import { Box3 } from '../math/Box3'; import { LineSegments } from '../objects/LineSegments'; import { LineBasicMaterial } from '../materials/LineBasicMaterial'; import { BufferAttribute } from '../core/BufferAttribute'; diff --git a/src/helpers/PlaneHelper.js b/src/helpers/PlaneHelper.js index 968ea6aad8f392d2e8dd5991290e38e45db686d3..e733bcdb03cfd430e7adb40a7bdabef7f164ae27 100644 --- a/src/helpers/PlaneHelper.js +++ b/src/helpers/PlaneHelper.js @@ -2,7 +2,6 @@ * @author WestLangley / http://github.com/WestLangley */ -import { Box3 } from '../math/Box3'; import { Line } from '../objects/Line'; import { Mesh } from '../objects/Mesh'; import { LineBasicMaterial } from '../materials/LineBasicMaterial'; diff --git a/src/renderers/WebGL2Renderer.js b/src/renderers/WebGL2Renderer.js index a329883bdccbac40e32f240fdbf5a221fb0289e7..9edcc6730bdf32f626238b23fd5b3ce805d35976 100644 --- a/src/renderers/WebGL2Renderer.js +++ b/src/renderers/WebGL2Renderer.js @@ -178,7 +178,7 @@ function WebGL2Renderer( parameters ) { setPixelRatio: setPixelRatio, setSize: setSize, render: render - } + }; } diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index c39a908d96a4ba0717d0f37ace4c713359d7bb9b..d02f31fcf26382b2f2581d2438f34ed5479c4214 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -459,14 +459,14 @@ function WebGLRenderer( parameters ) { this.setViewport = function ( x, y, width, height ) { - _viewport.set( x, _height - y - height, width, height ) + _viewport.set( x, _height - y - height, width, height ); state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ) ); }; this.setScissor = function ( x, y, width, height ) { - _scissor.set( x, _height - y - height, width, height ) + _scissor.set( x, _height - y - height, width, height ); state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ) ); }; diff --git a/src/renderers/webgl/WebGLTextures.js b/src/renderers/webgl/WebGLTextures.js index 0427272bd8644c15a820c7c74776debb09fe9b83..2e044343c446811db0dd417ac1def44fbed1fbe2 100644 --- a/src/renderers/webgl/WebGLTextures.js +++ b/src/renderers/webgl/WebGLTextures.js @@ -649,7 +649,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, paramT } else { - throw new Error('Unknown depthTexture format') + throw new Error('Unknown depthTexture format'); } diff --git a/src/textures/DepthTexture.js b/src/textures/DepthTexture.js index 86b5be523f639df0a466e7bad764e11cc970e6f6..add8ff810adabe8784a72da9d20df687b4933a96 100644 --- a/src/textures/DepthTexture.js +++ b/src/textures/DepthTexture.js @@ -12,7 +12,7 @@ function DepthTexture( width, height, type, mapping, wrapS, wrapT, magFilter, mi if ( format !== DepthFormat && format !== DepthStencilFormat ) { - throw new Error( 'DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat' ) + throw new Error( 'DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat' ); }