diff --git a/src/audio/Audio.js b/src/audio/Audio.js index 808b4a1b7f39bb4d12610981ea2509d84c91e77c..8a6aab7a80679685b2a7eef1df9e598d31d760c7 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 5e89fde55b915e375949eb3aed07134a0b17fae4..99cb7747659d76a2117e62b80a690854d182550c 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 1a0ea7d808ef5e5e110f70b8ed3fecdf51cef8de..e1edc538256a007775b16b2d20af8f1d82ddc7e6 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 99c7366d9c10a5f8859edd3b915f1c15bc37611e..bf049fbfb8dceaf8b130c6e87d6c14002038c5ca 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 4b0c051e80e3dbe99141752f8439d6e03542ae42..b71793a3a6e96cab0e7abe3af83b96f91bfc6191 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 2edc03010b6ab2d69169cf3ec6e60d4275587014..435c94866248d9842a92c0124741e0d497265c33 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 c069bcb1b73071aeea5f00329484c26ffe9ebc60..294fb65ffc56b0fd49e023af5172ef7e929cf709 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 c2e88cfa7efb7f8cd1c7033b5a22278fe0c7898e..a329883bdccbac40e32f240fdbf5a221fb0289e7 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 4b38db7525e7d059801c0a2c512b07af8ffcc547..03b3b3946ccef4221384c59f9195f0ff71eb7782 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 3f86a4a0d0d8803357dee8ed5b5c3e1c8030b6bc..cf1a59048c766a8845baaf4359ec37c1816043a4 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 a1c72052c1e64ae14a25f454baa99db9dc645777..50a55261dbdeb5e782b323939cddb9f405c5a119 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 1e7795b7873f8294beb0ffa4de8f21d6e3616823..ca2a0d9db1db07776a3aa0b8caf032d0ec8f0a87 100644 --- a/src/renderers/webgl/WebGLShader.js +++ b/src/renderers/webgl/WebGLShader.js @@ -42,4 +42,5 @@ function WebGLShader( gl, type, string ) { } + export { WebGLShader };