From 22e6b5bcbda31522295f8c1dfe3c7a46929d7713 Mon Sep 17 00:00:00 2001 From: Tristan VALCKE Date: Wed, 25 Jan 2017 14:15:17 +0100 Subject: [PATCH] Fix indentation --- src/audio/Audio.js | 3 +-- src/math/interpolants/CubicInterpolant.js | 6 ++---- src/math/interpolants/DiscreteInterpolant.js | 9 +++------ src/math/interpolants/LinearInterpolant.js | 9 +++------ src/math/interpolants/QuaternionLinearInterpolant.js | 9 +++------ src/objects/LOD.js | 1 - src/objects/SkinnedMesh.js | 1 - src/renderers/WebGL2Renderer.js | 1 + src/renderers/WebGLRenderer.js | 1 + src/renderers/webgl/WebGLClipping.js | 1 + src/renderers/webgl/WebGLProperties.js | 1 + src/renderers/webgl/WebGLShader.js | 1 + 12 files changed, 17 insertions(+), 26 deletions(-) diff --git a/src/audio/Audio.js b/src/audio/Audio.js index 808b4a1b7f..8a6aab7a80 100644 --- a/src/audio/Audio.js +++ b/src/audio/Audio.js @@ -286,8 +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/math/interpolants/CubicInterpolant.js b/src/math/interpolants/CubicInterpolant.js index 5e89fde55b..99cb774765 100644 --- a/src/math/interpolants/CubicInterpolant.js +++ b/src/math/interpolants/CubicInterpolant.js @@ -12,8 +12,7 @@ import { WrapAroundEnding, ZeroSlopeEnding } from '../../constants'; * @author tschw */ -function CubicInterpolant( - parameterPositions, sampleValues, sampleSize, resultBuffer ) { +function CubicInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); @@ -25,8 +24,7 @@ function CubicInterpolant( } -CubicInterpolant.prototype = - Object.assign( Object.create( Interpolant.prototype ), { +CubicInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { constructor: CubicInterpolant, diff --git a/src/math/interpolants/DiscreteInterpolant.js b/src/math/interpolants/DiscreteInterpolant.js index 1a0ea7d808..e1edc53825 100644 --- a/src/math/interpolants/DiscreteInterpolant.js +++ b/src/math/interpolants/DiscreteInterpolant.js @@ -8,16 +8,13 @@ import { Interpolant } from '../Interpolant'; * @author tschw */ -function DiscreteInterpolant( - parameterPositions, sampleValues, sampleSize, resultBuffer ) { +function DiscreteInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { - Interpolant.call( - this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); } -DiscreteInterpolant.prototype = - Object.assign( Object.create( Interpolant.prototype ), { +DiscreteInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { constructor: DiscreteInterpolant, diff --git a/src/math/interpolants/LinearInterpolant.js b/src/math/interpolants/LinearInterpolant.js index 99c7366d9c..bf049fbfb8 100644 --- a/src/math/interpolants/LinearInterpolant.js +++ b/src/math/interpolants/LinearInterpolant.js @@ -4,16 +4,13 @@ import { Interpolant } from '../Interpolant'; * @author tschw */ -function LinearInterpolant( - parameterPositions, sampleValues, sampleSize, resultBuffer ) { +function LinearInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { - Interpolant.call( - this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); } -LinearInterpolant.prototype = - Object.assign( Object.create( Interpolant.prototype ), { +LinearInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { constructor: LinearInterpolant, diff --git a/src/math/interpolants/QuaternionLinearInterpolant.js b/src/math/interpolants/QuaternionLinearInterpolant.js index 4b0c051e80..b71793a3a6 100644 --- a/src/math/interpolants/QuaternionLinearInterpolant.js +++ b/src/math/interpolants/QuaternionLinearInterpolant.js @@ -7,16 +7,13 @@ import { Quaternion } from '../Quaternion'; * @author tschw */ -function QuaternionLinearInterpolant( - parameterPositions, sampleValues, sampleSize, resultBuffer ) { +function QuaternionLinearInterpolant( parameterPositions, sampleValues, sampleSize, resultBuffer ) { - Interpolant.call( - this, parameterPositions, sampleValues, sampleSize, resultBuffer ); + Interpolant.call( this, parameterPositions, sampleValues, sampleSize, resultBuffer ); } -QuaternionLinearInterpolant.prototype = - Object.assign( Object.create( Interpolant.prototype ), { +QuaternionLinearInterpolant.prototype = Object.assign( Object.create( Interpolant.prototype ), { constructor: QuaternionLinearInterpolant, diff --git a/src/objects/LOD.js b/src/objects/LOD.js index 2edc03010b..435c948662 100644 --- a/src/objects/LOD.js +++ b/src/objects/LOD.js @@ -22,7 +22,6 @@ function LOD() { } - LOD.prototype = Object.assign( Object.create( Object3D.prototype ), { constructor: LOD, diff --git a/src/objects/SkinnedMesh.js b/src/objects/SkinnedMesh.js index c069bcb1b7..294fb65ffc 100644 --- a/src/objects/SkinnedMesh.js +++ b/src/objects/SkinnedMesh.js @@ -71,7 +71,6 @@ function SkinnedMesh( geometry, material, useVertexTexture ) { } - SkinnedMesh.prototype = Object.assign( Object.create( Mesh.prototype ), { constructor: SkinnedMesh, diff --git a/src/renderers/WebGL2Renderer.js b/src/renderers/WebGL2Renderer.js index c2e88cfa7e..a329883bdc 100644 --- a/src/renderers/WebGL2Renderer.js +++ b/src/renderers/WebGL2Renderer.js @@ -182,4 +182,5 @@ function WebGL2Renderer( parameters ) { } + export { WebGL2Renderer }; diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 4b38db7525..03b3b3946c 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -2884,4 +2884,5 @@ function WebGLRenderer( parameters ) { } + export { WebGLRenderer }; diff --git a/src/renderers/webgl/WebGLClipping.js b/src/renderers/webgl/WebGLClipping.js index 3f86a4a0d0..cf1a59048c 100644 --- a/src/renderers/webgl/WebGLClipping.js +++ b/src/renderers/webgl/WebGLClipping.js @@ -161,4 +161,5 @@ function WebGLClipping() { } + export { WebGLClipping }; diff --git a/src/renderers/webgl/WebGLProperties.js b/src/renderers/webgl/WebGLProperties.js index a1c72052c1..50a55261db 100644 --- a/src/renderers/webgl/WebGLProperties.js +++ b/src/renderers/webgl/WebGLProperties.js @@ -40,4 +40,5 @@ function WebGLProperties() { } + export { WebGLProperties }; diff --git a/src/renderers/webgl/WebGLShader.js b/src/renderers/webgl/WebGLShader.js index 1e7795b787..ca2a0d9db1 100644 --- a/src/renderers/webgl/WebGLShader.js +++ b/src/renderers/webgl/WebGLShader.js @@ -42,4 +42,5 @@ function WebGLShader( gl, type, string ) { } + export { WebGLShader }; -- GitLab