|
@@ -1374,7 +1374,7 @@ const ImageUtils = {
|
|
|
|
|
|
let textureId = 0;
|
|
|
|
|
|
-function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) {
|
|
|
+function Texture( image = Texture.DEFAULT_IMAGE, mapping = Texture.DEFAULT_MAPPING, wrapS = ClampToEdgeWrapping, wrapT = ClampToEdgeWrapping, magFilter = LinearFilter, minFilter = LinearMipmapLinearFilter, format = RGBAFormat, type = UnsignedByteType, anisotropy = 1, encoding = LinearEncoding ) {
|
|
|
|
|
|
Object.defineProperty( this, 'id', { value: textureId ++ } );
|
|
|
|
|
@@ -1382,22 +1382,22 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty
|
|
|
|
|
|
this.name = '';
|
|
|
|
|
|
- this.image = image !== undefined ? image : Texture.DEFAULT_IMAGE;
|
|
|
+ this.image = image;
|
|
|
this.mipmaps = [];
|
|
|
|
|
|
- this.mapping = mapping !== undefined ? mapping : Texture.DEFAULT_MAPPING;
|
|
|
+ this.mapping = mapping;
|
|
|
|
|
|
- this.wrapS = wrapS !== undefined ? wrapS : ClampToEdgeWrapping;
|
|
|
- this.wrapT = wrapT !== undefined ? wrapT : ClampToEdgeWrapping;
|
|
|
+ this.wrapS = wrapS;
|
|
|
+ this.wrapT = wrapT;
|
|
|
|
|
|
- this.magFilter = magFilter !== undefined ? magFilter : LinearFilter;
|
|
|
- this.minFilter = minFilter !== undefined ? minFilter : LinearMipmapLinearFilter;
|
|
|
+ this.magFilter = magFilter;
|
|
|
+ this.minFilter = minFilter;
|
|
|
|
|
|
- this.anisotropy = anisotropy !== undefined ? anisotropy : 1;
|
|
|
+ this.anisotropy = anisotropy;
|
|
|
|
|
|
- this.format = format !== undefined ? format : RGBAFormat;
|
|
|
+ this.format = format;
|
|
|
this.internalFormat = null;
|
|
|
- this.type = type !== undefined ? type : UnsignedByteType;
|
|
|
+ this.type = type;
|
|
|
|
|
|
this.offset = new Vector2( 0, 0 );
|
|
|
this.repeat = new Vector2( 1, 1 );
|
|
@@ -1416,7 +1416,7 @@ function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, ty
|
|
|
//
|
|
|
// Also changing the encoding after already used by a Material will not automatically make the Material
|
|
|
// update. You need to explicitly call Material.needsUpdate to trigger it to recompile.
|
|
|
- this.encoding = encoding !== undefined ? encoding : LinearEncoding;
|
|
|
+ this.encoding = encoding;
|
|
|
|
|
|
this.version = 0;
|
|
|
this.onUpdate = null;
|
|
@@ -8359,7 +8359,7 @@ Color.prototype.b = 1;
|
|
|
|
|
|
class Face3 {
|
|
|
|
|
|
- constructor( a, b, c, normal, color, materialIndex ) {
|
|
|
+ constructor( a, b, c, normal, color, materialIndex = 0 ) {
|
|
|
|
|
|
this.a = a;
|
|
|
this.b = b;
|
|
@@ -8371,7 +8371,7 @@ class Face3 {
|
|
|
this.color = ( color && color.isColor ) ? color : new Color();
|
|
|
this.vertexColors = Array.isArray( color ) ? color : [];
|
|
|
|
|
|
- this.materialIndex = materialIndex !== undefined ? materialIndex : 0;
|
|
|
+ this.materialIndex = materialIndex;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -9869,13 +9869,13 @@ BufferGeometry.prototype = Object.assign( Object.create( EventDispatcher.prototy
|
|
|
|
|
|
},
|
|
|
|
|
|
- addGroup: function ( start, count, materialIndex ) {
|
|
|
+ addGroup: function ( start, count, materialIndex = 0 ) {
|
|
|
|
|
|
this.groups.push( {
|
|
|
|
|
|
start: start,
|
|
|
count: count,
|
|
|
- materialIndex: materialIndex !== undefined ? materialIndex : 0
|
|
|
+ materialIndex: materialIndex
|
|
|
|
|
|
} );
|
|
|
|
|
@@ -11967,20 +11967,20 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), {
|
|
|
|
|
|
} );
|
|
|
|
|
|
-function PerspectiveCamera( fov, aspect, near, far ) {
|
|
|
+function PerspectiveCamera( fov = 50, aspect = 1, near = 0.1, far = 2000 ) {
|
|
|
|
|
|
Camera.call( this );
|
|
|
|
|
|
this.type = 'PerspectiveCamera';
|
|
|
|
|
|
- this.fov = fov !== undefined ? fov : 50;
|
|
|
+ this.fov = fov;
|
|
|
this.zoom = 1;
|
|
|
|
|
|
- this.near = near !== undefined ? near : 0.1;
|
|
|
- this.far = far !== undefined ? far : 2000;
|
|
|
+ this.near = near;
|
|
|
+ this.far = far;
|
|
|
this.focus = 10;
|
|
|
|
|
|
- this.aspect = aspect !== undefined ? aspect : 1;
|
|
|
+ this.aspect = aspect;
|
|
|
this.view = null;
|
|
|
|
|
|
this.filmGauge = 35; // width of the film (default in millimeters)
|
|
@@ -14073,10 +14073,10 @@ function WebGLBackground( renderer, cubemaps, state, objects, premultipliedAlpha
|
|
|
return clearColor;
|
|
|
|
|
|
},
|
|
|
- setClearColor: function ( color, alpha ) {
|
|
|
+ setClearColor: function ( color, alpha = 1 ) {
|
|
|
|
|
|
clearColor.set( color );
|
|
|
- clearAlpha = alpha !== undefined ? alpha : 1;
|
|
|
+ clearAlpha = alpha;
|
|
|
setClear( clearColor, clearAlpha );
|
|
|
|
|
|
},
|
|
@@ -15740,11 +15740,11 @@ function WebGLObjects( gl, geometries, attributes, info ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
-function DataTexture2DArray( data, width, height, depth ) {
|
|
|
+function DataTexture2DArray( data = null, width = 1, height = 1, depth = 1 ) {
|
|
|
|
|
|
Texture.call( this, null );
|
|
|
|
|
|
- this.image = { data: data || null, width: width || 1, height: height || 1, depth: depth || 1 };
|
|
|
+ this.image = { data, width, height, depth };
|
|
|
|
|
|
this.magFilter = NearestFilter;
|
|
|
this.minFilter = NearestFilter;
|
|
@@ -15762,7 +15762,7 @@ DataTexture2DArray.prototype = Object.create( Texture.prototype );
|
|
|
DataTexture2DArray.prototype.constructor = DataTexture2DArray;
|
|
|
DataTexture2DArray.prototype.isDataTexture2DArray = true;
|
|
|
|
|
|
-function DataTexture3D( data, width, height, depth ) {
|
|
|
+function DataTexture3D( data = null, width = 1, height = 1, depth = 1 ) {
|
|
|
|
|
|
// We're going to add .setXXX() methods for setting properties later.
|
|
|
// Users can still set in DataTexture3D directly.
|
|
@@ -15774,7 +15774,7 @@ function DataTexture3D( data, width, height, depth ) {
|
|
|
|
|
|
Texture.call( this, null );
|
|
|
|
|
|
- this.image = { data: data || null, width: width || 1, height: height || 1, depth: depth || 1 };
|
|
|
+ this.image = { data, width, height, depth };
|
|
|
|
|
|
this.magFilter = NearestFilter;
|
|
|
this.minFilter = NearestFilter;
|
|
@@ -21774,11 +21774,11 @@ function WebGLUtils( gl, extensions, capabilities ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
-function ArrayCamera( array ) {
|
|
|
+function ArrayCamera( array = [] ) {
|
|
|
|
|
|
PerspectiveCamera.call( this );
|
|
|
|
|
|
- this.cameras = array || [];
|
|
|
+ this.cameras = array;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -27451,7 +27451,7 @@ function DepthTexture( width, height, type, mapping, wrapS, wrapT, magFilter, mi
|
|
|
this.minFilter = minFilter !== undefined ? minFilter : NearestFilter;
|
|
|
|
|
|
this.flipY = false;
|
|
|
- this.generateMipmaps = false;
|
|
|
+ this.generateMipmaps = false;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -34457,9 +34457,7 @@ const AnimationUtils = {
|
|
|
|
|
|
},
|
|
|
|
|
|
- subclip: function ( sourceClip, name, startFrame, endFrame, fps ) {
|
|
|
-
|
|
|
- fps = fps || 30;
|
|
|
+ subclip: function ( sourceClip, name, startFrame, endFrame, fps = 30 ) {
|
|
|
|
|
|
const clip = sourceClip.clone();
|
|
|
|
|
@@ -37883,16 +37881,16 @@ function CubicPoly() {
|
|
|
const tmp = new Vector3();
|
|
|
const px = new CubicPoly(), py = new CubicPoly(), pz = new CubicPoly();
|
|
|
|
|
|
-function CatmullRomCurve3( points, closed, curveType, tension ) {
|
|
|
+function CatmullRomCurve3( points = [], closed = false, curveType = 'centripetal', tension = 0.5 ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'CatmullRomCurve3';
|
|
|
|
|
|
- this.points = points || [];
|
|
|
- this.closed = closed || false;
|
|
|
- this.curveType = curveType || 'centripetal';
|
|
|
- this.tension = ( tension !== undefined ) ? tension : 0.5;
|
|
|
+ this.points = points;
|
|
|
+ this.closed = closed;
|
|
|
+ this.curveType = curveType;
|
|
|
+ this.tension = tension;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -37901,9 +37899,9 @@ CatmullRomCurve3.prototype.constructor = CatmullRomCurve3;
|
|
|
|
|
|
CatmullRomCurve3.prototype.isCatmullRomCurve3 = true;
|
|
|
|
|
|
-CatmullRomCurve3.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+CatmullRomCurve3.prototype.getPoint = function ( t, optionalTarget = new Vector3() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector3();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
const points = this.points;
|
|
|
const l = points.length;
|
|
@@ -38129,16 +38127,16 @@ function CubicBezier( t, p0, p1, p2, p3 ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
-function CubicBezierCurve( v0, v1, v2, v3 ) {
|
|
|
+function CubicBezierCurve( v0 = new Vector2(), v1 = new Vector2(), v2 = new Vector2(), v3 = new Vector2() ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'CubicBezierCurve';
|
|
|
|
|
|
- this.v0 = v0 || new Vector2();
|
|
|
- this.v1 = v1 || new Vector2();
|
|
|
- this.v2 = v2 || new Vector2();
|
|
|
- this.v3 = v3 || new Vector2();
|
|
|
+ this.v0 = v0;
|
|
|
+ this.v1 = v1;
|
|
|
+ this.v2 = v2;
|
|
|
+ this.v3 = v3;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38147,9 +38145,9 @@ CubicBezierCurve.prototype.constructor = CubicBezierCurve;
|
|
|
|
|
|
CubicBezierCurve.prototype.isCubicBezierCurve = true;
|
|
|
|
|
|
-CubicBezierCurve.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+CubicBezierCurve.prototype.getPoint = function ( t, optionalTarget = new Vector2() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector2();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
const v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3;
|
|
|
|
|
@@ -38201,16 +38199,16 @@ CubicBezierCurve.prototype.fromJSON = function ( json ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-function CubicBezierCurve3( v0, v1, v2, v3 ) {
|
|
|
+function CubicBezierCurve3( v0 = new Vector3(), v1 = new Vector3(), v2 = new Vector3(), v3 = new Vector3() ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'CubicBezierCurve3';
|
|
|
|
|
|
- this.v0 = v0 || new Vector3();
|
|
|
- this.v1 = v1 || new Vector3();
|
|
|
- this.v2 = v2 || new Vector3();
|
|
|
- this.v3 = v3 || new Vector3();
|
|
|
+ this.v0 = v0;
|
|
|
+ this.v1 = v1;
|
|
|
+ this.v2 = v2;
|
|
|
+ this.v3 = v3;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38219,9 +38217,9 @@ CubicBezierCurve3.prototype.constructor = CubicBezierCurve3;
|
|
|
|
|
|
CubicBezierCurve3.prototype.isCubicBezierCurve3 = true;
|
|
|
|
|
|
-CubicBezierCurve3.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+CubicBezierCurve3.prototype.getPoint = function ( t, optionalTarget = new Vector3() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector3();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
const v0 = this.v0, v1 = this.v1, v2 = this.v2, v3 = this.v3;
|
|
|
|
|
@@ -38274,14 +38272,14 @@ CubicBezierCurve3.prototype.fromJSON = function ( json ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-function LineCurve( v1, v2 ) {
|
|
|
+function LineCurve( v1 = new Vector2(), v2 = new Vector2() ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'LineCurve';
|
|
|
|
|
|
- this.v1 = v1 || new Vector2();
|
|
|
- this.v2 = v2 || new Vector2();
|
|
|
+ this.v1 = v1;
|
|
|
+ this.v2 = v2;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38290,9 +38288,9 @@ LineCurve.prototype.constructor = LineCurve;
|
|
|
|
|
|
LineCurve.prototype.isLineCurve = true;
|
|
|
|
|
|
-LineCurve.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+LineCurve.prototype.getPoint = function ( t, optionalTarget = new Vector2() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector2();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
if ( t === 1 ) {
|
|
|
|
|
@@ -38360,14 +38358,14 @@ LineCurve.prototype.fromJSON = function ( json ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-function LineCurve3( v1, v2 ) {
|
|
|
+function LineCurve3( v1 = new Vector3(), v2 = new Vector3() ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'LineCurve3';
|
|
|
|
|
|
- this.v1 = v1 || new Vector3();
|
|
|
- this.v2 = v2 || new Vector3();
|
|
|
+ this.v1 = v1;
|
|
|
+ this.v2 = v2;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38376,9 +38374,9 @@ LineCurve3.prototype.constructor = LineCurve3;
|
|
|
|
|
|
LineCurve3.prototype.isLineCurve3 = true;
|
|
|
|
|
|
-LineCurve3.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+LineCurve3.prototype.getPoint = function ( t, optionalTarget = new Vector3() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector3();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
if ( t === 1 ) {
|
|
|
|
|
@@ -38436,15 +38434,15 @@ LineCurve3.prototype.fromJSON = function ( json ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-function QuadraticBezierCurve( v0, v1, v2 ) {
|
|
|
+function QuadraticBezierCurve( v0 = new Vector2(), v1 = new Vector2(), v2 = new Vector2() ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'QuadraticBezierCurve';
|
|
|
|
|
|
- this.v0 = v0 || new Vector2();
|
|
|
- this.v1 = v1 || new Vector2();
|
|
|
- this.v2 = v2 || new Vector2();
|
|
|
+ this.v0 = v0;
|
|
|
+ this.v1 = v1;
|
|
|
+ this.v2 = v2;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38453,9 +38451,9 @@ QuadraticBezierCurve.prototype.constructor = QuadraticBezierCurve;
|
|
|
|
|
|
QuadraticBezierCurve.prototype.isQuadraticBezierCurve = true;
|
|
|
|
|
|
-QuadraticBezierCurve.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+QuadraticBezierCurve.prototype.getPoint = function ( t, optionalTarget = new Vector2() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector2();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
const v0 = this.v0, v1 = this.v1, v2 = this.v2;
|
|
|
|
|
@@ -38504,15 +38502,15 @@ QuadraticBezierCurve.prototype.fromJSON = function ( json ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-function QuadraticBezierCurve3( v0, v1, v2 ) {
|
|
|
+function QuadraticBezierCurve3( v0 = new Vector3(), v1 = new Vector3(), v2 = new Vector3() ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'QuadraticBezierCurve3';
|
|
|
|
|
|
- this.v0 = v0 || new Vector3();
|
|
|
- this.v1 = v1 || new Vector3();
|
|
|
- this.v2 = v2 || new Vector3();
|
|
|
+ this.v0 = v0;
|
|
|
+ this.v1 = v1;
|
|
|
+ this.v2 = v2;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38521,9 +38519,9 @@ QuadraticBezierCurve3.prototype.constructor = QuadraticBezierCurve3;
|
|
|
|
|
|
QuadraticBezierCurve3.prototype.isQuadraticBezierCurve3 = true;
|
|
|
|
|
|
-QuadraticBezierCurve3.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+QuadraticBezierCurve3.prototype.getPoint = function ( t, optionalTarget = new Vector3() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector3();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
const v0 = this.v0, v1 = this.v1, v2 = this.v2;
|
|
|
|
|
@@ -38573,13 +38571,13 @@ QuadraticBezierCurve3.prototype.fromJSON = function ( json ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
-function SplineCurve( points ) {
|
|
|
+function SplineCurve( points = [] ) {
|
|
|
|
|
|
Curve.call( this );
|
|
|
|
|
|
this.type = 'SplineCurve';
|
|
|
|
|
|
- this.points = points || [];
|
|
|
+ this.points = points;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -38588,9 +38586,9 @@ SplineCurve.prototype.constructor = SplineCurve;
|
|
|
|
|
|
SplineCurve.prototype.isSplineCurve = true;
|
|
|
|
|
|
-SplineCurve.prototype.getPoint = function ( t, optionalTarget ) {
|
|
|
+SplineCurve.prototype.getPoint = function ( t, optionalTarget = new Vector2() ) {
|
|
|
|
|
|
- const point = optionalTarget || new Vector2();
|
|
|
+ const point = optionalTarget;
|
|
|
|
|
|
const points = this.points;
|
|
|
const p = ( points.length - 1 ) * t;
|
|
@@ -38831,9 +38829,7 @@ CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), {
|
|
|
|
|
|
},
|
|
|
|
|
|
- getPoints: function ( divisions ) {
|
|
|
-
|
|
|
- divisions = divisions || 12;
|
|
|
+ getPoints: function ( divisions = 12 ) {
|
|
|
|
|
|
const points = [];
|
|
|
let last;
|
|
@@ -39216,14 +39212,14 @@ Shape.prototype = Object.assign( Object.create( Path.prototype ), {
|
|
|
|
|
|
} );
|
|
|
|
|
|
-function Light( color, intensity ) {
|
|
|
+function Light( color, intensity = 1 ) {
|
|
|
|
|
|
Object3D.call( this );
|
|
|
|
|
|
this.type = 'Light';
|
|
|
|
|
|
this.color = new Color( color );
|
|
|
- this.intensity = intensity !== undefined ? intensity : 1;
|
|
|
+ this.intensity = intensity;
|
|
|
|
|
|
}
|
|
|
|
|
@@ -42780,7 +42776,7 @@ class Clock {
|
|
|
|
|
|
start() {
|
|
|
|
|
|
- this.startTime = ( typeof performance === 'undefined' ? Date : performance ).now(); // see #10732
|
|
|
+ this.startTime = now();
|
|
|
|
|
|
this.oldTime = this.startTime;
|
|
|
this.elapsedTime = 0;
|
|
@@ -42816,7 +42812,7 @@ class Clock {
|
|
|
|
|
|
if ( this.running ) {
|
|
|
|
|
|
- const newTime = ( typeof performance === 'undefined' ? Date : performance ).now();
|
|
|
+ const newTime = now();
|
|
|
|
|
|
diff = ( newTime - this.oldTime ) / 1000;
|
|
|
this.oldTime = newTime;
|
|
@@ -42831,6 +42827,12 @@ class Clock {
|
|
|
|
|
|
}
|
|
|
|
|
|
+function now() {
|
|
|
+
|
|
|
+ return ( typeof performance === 'undefined' ? Date : performance ).now(); // see #10732
|
|
|
+
|
|
|
+}
|
|
|
+
|
|
|
const _position$2 = /*@__PURE__*/ new Vector3();
|
|
|
const _quaternion$3 = /*@__PURE__*/ new Quaternion();
|
|
|
const _scale$1 = /*@__PURE__*/ new Vector3();
|
|
@@ -43476,10 +43478,10 @@ class PositionalAudio extends Audio {
|
|
|
|
|
|
class AudioAnalyser {
|
|
|
|
|
|
- constructor( audio, fftSize ) {
|
|
|
+ constructor( audio, fftSize = 2048 ) {
|
|
|
|
|
|
this.analyser = audio.context.createAnalyser();
|
|
|
- this.analyser.fftSize = fftSize !== undefined ? fftSize : 2048;
|
|
|
+ this.analyser.fftSize = fftSize;
|
|
|
|
|
|
this.data = new Uint8Array( this.analyser.frequencyBinCount );
|
|
|
|
|
@@ -44895,12 +44897,12 @@ Object.assign( AnimationObjectGroup.prototype, {
|
|
|
|
|
|
class AnimationAction {
|
|
|
|
|
|
- constructor( mixer, clip, localRoot, blendMode ) {
|
|
|
+ constructor( mixer, clip, localRoot = null, blendMode = clip.blendMode ) {
|
|
|
|
|
|
this._mixer = mixer;
|
|
|
this._clip = clip;
|
|
|
- this._localRoot = localRoot || null;
|
|
|
- this.blendMode = blendMode || clip.blendMode;
|
|
|
+ this._localRoot = localRoot;
|
|
|
+ this.blendMode = blendMode;
|
|
|
|
|
|
const tracks = clip.tracks,
|
|
|
nTracks = tracks.length,
|
|
@@ -47495,12 +47497,10 @@ class HemisphereLightHelper extends Object3D {
|
|
|
|
|
|
class GridHelper extends LineSegments {
|
|
|
|
|
|
- constructor( size, divisions, color1, color2 ) {
|
|
|
+ constructor( size = 10, divisions = 10, color1 = 0x444444, color2 = 0x888888 ) {
|
|
|
|
|
|
- size = size || 10;
|
|
|
- divisions = divisions || 10;
|
|
|
- color1 = new Color( color1 !== undefined ? color1 : 0x444444 );
|
|
|
- color2 = new Color( color2 !== undefined ? color2 : 0x888888 );
|
|
|
+ color1 = new Color( color1 );
|
|
|
+ color2 = new Color( color2 );
|
|
|
|
|
|
const center = divisions / 2;
|
|
|
const step = size / divisions;
|
|
@@ -47538,14 +47538,10 @@ class GridHelper extends LineSegments {
|
|
|
|
|
|
class PolarGridHelper extends LineSegments {
|
|
|
|
|
|
- constructor( radius, radials, circles, divisions, color1, color2 ) {
|
|
|
+ constructor( radius = 10, radials = 16, circles = 8, divisions = 64, color1 = 0x444444, color2 = 0x888888 ) {
|
|
|
|
|
|
- radius = radius || 10;
|
|
|
- radials = radials || 16;
|
|
|
- circles = circles || 8;
|
|
|
- divisions = divisions || 64;
|
|
|
- color1 = new Color( color1 !== undefined ? color1 : 0x444444 );
|
|
|
- color2 = new Color( color2 !== undefined ? color2 : 0x888888 );
|
|
|
+ color1 = new Color( color1 );
|
|
|
+ color2 = new Color( color2 );
|
|
|
|
|
|
const vertices = [];
|
|
|
const colors = [];
|