@plastic-software/three 0.175.9 → 0.175.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1689,7 +1689,7 @@ class EventDispatcher {
1689
1689
 
1690
1690
  }
1691
1691
 
1692
- if ( listeners[ type ].indexOf( listener ) === - 1 ) {
1692
+ if ( listeners[ type ].indexOf( listener ) === -1 ) {
1693
1693
 
1694
1694
  listeners[ type ].push( listener );
1695
1695
 
@@ -1710,7 +1710,7 @@ class EventDispatcher {
1710
1710
 
1711
1711
  if ( listeners === undefined ) return false;
1712
1712
 
1713
- return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== - 1;
1713
+ return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== -1;
1714
1714
 
1715
1715
  }
1716
1716
 
@@ -1732,7 +1732,7 @@ class EventDispatcher {
1732
1732
 
1733
1733
  const index = listenerArray.indexOf( listener );
1734
1734
 
1735
- if ( index !== - 1 ) {
1735
+ if ( index !== -1 ) {
1736
1736
 
1737
1737
  listenerArray.splice( index, 1 );
1738
1738
 
@@ -2183,15 +2183,15 @@ function denormalize( value, array ) {
2183
2183
 
2184
2184
  case Int32Array:
2185
2185
 
2186
- return Math.max( value / 2147483647.0, - 1.0 );
2186
+ return Math.max( value / 2147483647.0, -1 );
2187
2187
 
2188
2188
  case Int16Array:
2189
2189
 
2190
- return Math.max( value / 32767.0, - 1.0 );
2190
+ return Math.max( value / 32767.0, -1 );
2191
2191
 
2192
2192
  case Int8Array:
2193
2193
 
2194
- return Math.max( value / 127.0, - 1.0 );
2194
+ return Math.max( value / 127.0, -1 );
2195
2195
 
2196
2196
  default:
2197
2197
 
@@ -3161,7 +3161,7 @@ class Vector2 {
3161
3161
 
3162
3162
  // clamp, to handle numerical problems
3163
3163
 
3164
- return Math.acos( clamp( theta, - 1, 1 ) );
3164
+ return Math.acos( clamp( theta, -1, 1 ) );
3165
3165
 
3166
3166
  }
3167
3167
 
@@ -4075,7 +4075,7 @@ function toNormalizedProjectionMatrix( projectionMatrix ) {
4075
4075
  function toReversedProjectionMatrix( projectionMatrix ) {
4076
4076
 
4077
4077
  const m = projectionMatrix.elements;
4078
- const isPerspectiveMatrix = m[ 11 ] === - 1;
4078
+ const isPerspectiveMatrix = m[ 11 ] === -1;
4079
4079
 
4080
4080
  // Reverse [0, 1] projection matrix
4081
4081
  if ( isPerspectiveMatrix ) {
@@ -4099,9 +4099,9 @@ const LINEAR_REC709_TO_XYZ = /*@__PURE__*/ new Matrix3().set(
4099
4099
  );
4100
4100
 
4101
4101
  const XYZ_TO_LINEAR_REC709 = /*@__PURE__*/ new Matrix3().set(
4102
- 3.2409699, - 1.5373832, - 0.4986108,
4103
- - 0.9692436, 1.8759675, 0.0415551,
4104
- 0.0556301, - 0.2039770, 1.0569715
4102
+ 3.2409699, -1.5373832, -0.4986108,
4103
+ -0.9692436, 1.8759675, 0.0415551,
4104
+ 0.0556301, -0.203977, 1.0569715
4105
4105
  );
4106
4106
 
4107
4107
  function createColorManagement() {
@@ -7112,7 +7112,7 @@ class Quaternion {
7112
7112
 
7113
7113
  let s = 1 - t;
7114
7114
  const cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1,
7115
- dir = ( cos >= 0 ? 1 : - 1 ),
7115
+ dir = ( cos >= 0 ? 1 : -1 ),
7116
7116
  sqrSin = 1 - cos * cos;
7117
7117
 
7118
7118
  // Skip the Slerp for tiny steps to avoid numeric problems:
@@ -7545,7 +7545,7 @@ class Quaternion {
7545
7545
  */
7546
7546
  angleTo( q ) {
7547
7547
 
7548
- return 2 * Math.acos( Math.abs( clamp( this.dot( q ), - 1, 1 ) ) );
7548
+ return 2 * Math.acos( Math.abs( clamp( this.dot( q ), -1, 1 ) ) );
7549
7549
 
7550
7550
  }
7551
7551
 
@@ -7604,9 +7604,9 @@ class Quaternion {
7604
7604
  */
7605
7605
  conjugate() {
7606
7606
 
7607
- this._x *= - 1;
7608
- this._y *= - 1;
7609
- this._z *= - 1;
7607
+ this._x *= -1;
7608
+ this._y *= -1;
7609
+ this._z *= -1;
7610
7610
 
7611
7611
  this._onChangeCallback();
7612
7612
 
@@ -8894,7 +8894,7 @@ class Vector3 {
8894
8894
 
8895
8895
  // clamp, to handle numerical problems
8896
8896
 
8897
- return Math.acos( clamp( theta, - 1, 1 ) );
8897
+ return Math.acos( clamp( theta, -1, 1 ) );
8898
8898
 
8899
8899
  }
8900
8900
 
@@ -10004,7 +10004,7 @@ class Sphere {
10004
10004
  * @param {Vector3} [center=(0,0,0)] - The center of the sphere
10005
10005
  * @param {number} [radius=-1] - The radius of the sphere.
10006
10006
  */
10007
- constructor( center = new Vector3(), radius = - 1 ) {
10007
+ constructor( center = new Vector3(), radius = -1 ) {
10008
10008
 
10009
10009
  /**
10010
10010
  * This flag can be used for type testing.
@@ -10122,7 +10122,7 @@ class Sphere {
10122
10122
  makeEmpty() {
10123
10123
 
10124
10124
  this.center.set( 0, 0, 0 );
10125
- this.radius = - 1;
10125
+ this.radius = -1;
10126
10126
 
10127
10127
  return this;
10128
10128
 
@@ -10399,7 +10399,7 @@ class Ray {
10399
10399
  * @param {Vector3} [origin=(0,0,0)] - The origin of the ray.
10400
10400
  * @param {Vector3} [direction=(0,0,-1)] - The (normalized) direction of the ray.
10401
10401
  */
10402
- constructor( origin = new Vector3(), direction = new Vector3( 0, 0, - 1 ) ) {
10402
+ constructor( origin = new Vector3(), direction = new Vector3( 0, 0, -1 ) ) {
10403
10403
 
10404
10404
  /**
10405
10405
  * The origin of the ray.
@@ -10936,7 +10936,7 @@ class Ray {
10936
10936
 
10937
10937
  } else if ( DdN < 0 ) {
10938
10938
 
10939
- sign = - 1;
10939
+ sign = -1;
10940
10940
  DdN = - DdN;
10941
10941
 
10942
10942
  } else {
@@ -12144,7 +12144,7 @@ class Matrix4 {
12144
12144
  if ( coordinateSystem === WebGLCoordinateSystem ) {
12145
12145
 
12146
12146
  c = - ( far + near ) / ( far - near );
12147
- d = ( - 2 * far * near ) / ( far - near );
12147
+ d = ( -2 * far * near ) / ( far - near );
12148
12148
 
12149
12149
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
12150
12150
 
@@ -12160,7 +12160,7 @@ class Matrix4 {
12160
12160
  te[ 0 ] = x; te[ 4 ] = 0; te[ 8 ] = a; te[ 12 ] = 0;
12161
12161
  te[ 1 ] = 0; te[ 5 ] = y; te[ 9 ] = b; te[ 13 ] = 0;
12162
12162
  te[ 2 ] = 0; te[ 6 ] = 0; te[ 10 ] = c; te[ 14 ] = d;
12163
- te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = - 1; te[ 15 ] = 0;
12163
+ te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = -1; te[ 15 ] = 0;
12164
12164
 
12165
12165
  return this;
12166
12166
 
@@ -12194,12 +12194,12 @@ class Matrix4 {
12194
12194
  if ( coordinateSystem === WebGLCoordinateSystem ) {
12195
12195
 
12196
12196
  z = ( far + near ) * p;
12197
- zInv = - 2 * p;
12197
+ zInv = -2 * p;
12198
12198
 
12199
12199
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
12200
12200
 
12201
12201
  z = near * p;
12202
- zInv = - 1 * p;
12202
+ zInv = -1 * p;
12203
12203
 
12204
12204
  } else {
12205
12205
 
@@ -12496,7 +12496,7 @@ class Euler {
12496
12496
 
12497
12497
  case 'XYZ':
12498
12498
 
12499
- this._y = Math.asin( clamp( m13, - 1, 1 ) );
12499
+ this._y = Math.asin( clamp( m13, -1, 1 ) );
12500
12500
 
12501
12501
  if ( Math.abs( m13 ) < 0.9999999 ) {
12502
12502
 
@@ -12514,7 +12514,7 @@ class Euler {
12514
12514
 
12515
12515
  case 'YXZ':
12516
12516
 
12517
- this._x = Math.asin( - clamp( m23, - 1, 1 ) );
12517
+ this._x = Math.asin( - clamp( m23, -1, 1 ) );
12518
12518
 
12519
12519
  if ( Math.abs( m23 ) < 0.9999999 ) {
12520
12520
 
@@ -12532,7 +12532,7 @@ class Euler {
12532
12532
 
12533
12533
  case 'ZXY':
12534
12534
 
12535
- this._x = Math.asin( clamp( m32, - 1, 1 ) );
12535
+ this._x = Math.asin( clamp( m32, -1, 1 ) );
12536
12536
 
12537
12537
  if ( Math.abs( m32 ) < 0.9999999 ) {
12538
12538
 
@@ -12550,7 +12550,7 @@ class Euler {
12550
12550
 
12551
12551
  case 'ZYX':
12552
12552
 
12553
- this._y = Math.asin( - clamp( m31, - 1, 1 ) );
12553
+ this._y = Math.asin( - clamp( m31, -1, 1 ) );
12554
12554
 
12555
12555
  if ( Math.abs( m31 ) < 0.9999999 ) {
12556
12556
 
@@ -12568,7 +12568,7 @@ class Euler {
12568
12568
 
12569
12569
  case 'YZX':
12570
12570
 
12571
- this._z = Math.asin( clamp( m21, - 1, 1 ) );
12571
+ this._z = Math.asin( clamp( m21, -1, 1 ) );
12572
12572
 
12573
12573
  if ( Math.abs( m21 ) < 0.9999999 ) {
12574
12574
 
@@ -12586,7 +12586,7 @@ class Euler {
12586
12586
 
12587
12587
  case 'XZY':
12588
12588
 
12589
- this._z = Math.asin( - clamp( m12, - 1, 1 ) );
12589
+ this._z = Math.asin( - clamp( m12, -1, 1 ) );
12590
12590
 
12591
12591
  if ( Math.abs( m12 ) < 0.9999999 ) {
12592
12592
 
@@ -13642,7 +13642,7 @@ class Object3D extends EventDispatcher {
13642
13642
 
13643
13643
  const index = this.children.indexOf( object );
13644
13644
 
13645
- if ( index !== - 1 ) {
13645
+ if ( index !== -1 ) {
13646
13646
 
13647
13647
  object.parent = null;
13648
13648
  this.children.splice( index, 1 );
@@ -15555,7 +15555,7 @@ class Color {
15555
15555
  */
15556
15556
  getHexString( colorSpace = SRGBColorSpace ) {
15557
15557
 
15558
- return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( - 6 );
15558
+ return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( -6 );
15559
15559
 
15560
15560
  }
15561
15561
 
@@ -17233,7 +17233,7 @@ function _generateTables() {
17233
17233
 
17234
17234
  // very small number (0, -0)
17235
17235
 
17236
- if ( e < - 27 ) {
17236
+ if ( e < -27 ) {
17237
17237
 
17238
17238
  baseTable[ i ] = 0x0000;
17239
17239
  baseTable[ i | 0x100 ] = 0x8000;
@@ -17242,7 +17242,7 @@ function _generateTables() {
17242
17242
 
17243
17243
  // small number (denorm)
17244
17244
 
17245
- } else if ( e < - 14 ) {
17245
+ } else if ( e < -14 ) {
17246
17246
 
17247
17247
  baseTable[ i ] = 0x0400 >> ( - e - 14 );
17248
17248
  baseTable[ i | 0x100 ] = ( 0x0400 >> ( - e - 14 ) ) | 0x8000;
@@ -17299,7 +17299,7 @@ function _generateTables() {
17299
17299
 
17300
17300
  }
17301
17301
 
17302
- m &= ~ 0x00800000; // clear leading 1 bit
17302
+ m &= -8388609; // clear leading 1 bit
17303
17303
  e += 0x38800000; // adjust bias
17304
17304
 
17305
17305
  mantissaTable[ i ] = m | e;
@@ -17362,7 +17362,7 @@ function toHalfFloat( val ) {
17362
17362
 
17363
17363
  if ( Math.abs( val ) > 65504 ) console.warn( 'THREE.DataUtils.toHalfFloat(): Value out of range.' );
17364
17364
 
17365
- val = clamp( val, - 65504, 65504 );
17365
+ val = clamp( val, -65504, 65504 );
17366
17366
 
17367
17367
  _tables.floatView[ 0 ] = val;
17368
17368
  const f = _tables.uint32View[ 0 ];
@@ -19376,7 +19376,7 @@ class BufferGeometry extends EventDispatcher {
19376
19376
 
19377
19377
  tmp2.crossVectors( n2, t );
19378
19378
  const test = tmp2.dot( tan2[ v ] );
19379
- const w = ( test < 0.0 ) ? - 1.0 : 1.0;
19379
+ const w = ( test < 0.0 ) ? -1 : 1.0;
19380
19380
 
19381
19381
  tangentAttribute.setXYZW( v, tmp.x, tmp.y, tmp.z, w );
19382
19382
 
@@ -20331,7 +20331,7 @@ function checkGeometryIntersection( object, material, raycaster, ray, uv, uv1, n
20331
20331
 
20332
20332
  if ( intersection.normal.dot( ray.direction ) > 0 ) {
20333
20333
 
20334
- intersection.normal.multiplyScalar( - 1 );
20334
+ intersection.normal.multiplyScalar( -1 );
20335
20335
 
20336
20336
  }
20337
20337
 
@@ -20426,12 +20426,12 @@ class BoxGeometry extends BufferGeometry {
20426
20426
 
20427
20427
  // build each side of the box geometry
20428
20428
 
20429
- buildPlane( 'z', 'y', 'x', - 1, - 1, depth, height, width, depthSegments, heightSegments, 0 ); // px
20430
- buildPlane( 'z', 'y', 'x', 1, - 1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
20429
+ buildPlane( 'z', 'y', 'x', -1, -1, depth, height, width, depthSegments, heightSegments, 0 ); // px
20430
+ buildPlane( 'z', 'y', 'x', 1, -1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
20431
20431
  buildPlane( 'x', 'z', 'y', 1, 1, width, depth, height, widthSegments, depthSegments, 2 ); // py
20432
- buildPlane( 'x', 'z', 'y', 1, - 1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
20433
- buildPlane( 'x', 'y', 'z', 1, - 1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
20434
- buildPlane( 'x', 'y', 'z', - 1, - 1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
20432
+ buildPlane( 'x', 'z', 'y', 1, -1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
20433
+ buildPlane( 'x', 'y', 'z', 1, -1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
20434
+ buildPlane( 'x', 'y', 'z', -1, -1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
20435
20435
 
20436
20436
  // build geometry
20437
20437
 
@@ -20481,7 +20481,7 @@ class BoxGeometry extends BufferGeometry {
20481
20481
 
20482
20482
  vector[ u ] = 0;
20483
20483
  vector[ v ] = 0;
20484
- vector[ w ] = depth > 0 ? 1 : - 1;
20484
+ vector[ w ] = depth > 0 ? 1 : -1;
20485
20485
 
20486
20486
  // now apply vector to normal buffer
20487
20487
 
@@ -21398,7 +21398,7 @@ class PerspectiveCamera extends Camera {
21398
21398
  */
21399
21399
  getViewBounds( distance, minTarget, maxTarget ) {
21400
21400
 
21401
- _v3$1.set( - 1, - 1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
21401
+ _v3$1.set( -1, -1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
21402
21402
 
21403
21403
  minTarget.set( _v3$1.x, _v3$1.y ).multiplyScalar( - distance / _v3$1.z );
21404
21404
 
@@ -21521,7 +21521,7 @@ class PerspectiveCamera extends Camera {
21521
21521
  let top = near * Math.tan( DEG2RAD * 0.5 * this.fov ) / this.zoom;
21522
21522
  let height = 2 * top;
21523
21523
  let width = this.aspect * height;
21524
- let left = - 0.5 * width;
21524
+ let left = -0.5 * width;
21525
21525
  const view = this.view;
21526
21526
 
21527
21527
  if ( this.view !== null && this.view.enabled ) {
@@ -21569,7 +21569,7 @@ class PerspectiveCamera extends Camera {
21569
21569
 
21570
21570
  }
21571
21571
 
21572
- const fov = - 90; // negative fov is not an error
21572
+ const fov = -90; // negative fov is not an error
21573
21573
  const aspect = 1;
21574
21574
 
21575
21575
  /**
@@ -21685,39 +21685,39 @@ class CubeCamera extends Object3D {
21685
21685
  cameraPX.lookAt( 1, 0, 0 );
21686
21686
 
21687
21687
  cameraNX.up.set( 0, 1, 0 );
21688
- cameraNX.lookAt( - 1, 0, 0 );
21688
+ cameraNX.lookAt( -1, 0, 0 );
21689
21689
 
21690
- cameraPY.up.set( 0, 0, - 1 );
21690
+ cameraPY.up.set( 0, 0, -1 );
21691
21691
  cameraPY.lookAt( 0, 1, 0 );
21692
21692
 
21693
21693
  cameraNY.up.set( 0, 0, 1 );
21694
- cameraNY.lookAt( 0, - 1, 0 );
21694
+ cameraNY.lookAt( 0, -1, 0 );
21695
21695
 
21696
21696
  cameraPZ.up.set( 0, 1, 0 );
21697
21697
  cameraPZ.lookAt( 0, 0, 1 );
21698
21698
 
21699
21699
  cameraNZ.up.set( 0, 1, 0 );
21700
- cameraNZ.lookAt( 0, 0, - 1 );
21700
+ cameraNZ.lookAt( 0, 0, -1 );
21701
21701
 
21702
21702
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
21703
21703
 
21704
- cameraPX.up.set( 0, - 1, 0 );
21705
- cameraPX.lookAt( - 1, 0, 0 );
21704
+ cameraPX.up.set( 0, -1, 0 );
21705
+ cameraPX.lookAt( -1, 0, 0 );
21706
21706
 
21707
- cameraNX.up.set( 0, - 1, 0 );
21707
+ cameraNX.up.set( 0, -1, 0 );
21708
21708
  cameraNX.lookAt( 1, 0, 0 );
21709
21709
 
21710
21710
  cameraPY.up.set( 0, 0, 1 );
21711
21711
  cameraPY.lookAt( 0, 1, 0 );
21712
21712
 
21713
- cameraNY.up.set( 0, 0, - 1 );
21714
- cameraNY.lookAt( 0, - 1, 0 );
21713
+ cameraNY.up.set( 0, 0, -1 );
21714
+ cameraNY.lookAt( 0, -1, 0 );
21715
21715
 
21716
- cameraPZ.up.set( 0, - 1, 0 );
21716
+ cameraPZ.up.set( 0, -1, 0 );
21717
21717
  cameraPZ.lookAt( 0, 0, 1 );
21718
21718
 
21719
- cameraNZ.up.set( 0, - 1, 0 );
21720
- cameraNZ.lookAt( 0, 0, - 1 );
21719
+ cameraNZ.up.set( 0, -1, 0 );
21720
+ cameraNZ.lookAt( 0, 0, -1 );
21721
21721
 
21722
21722
  } else {
21723
21723
 
@@ -23877,10 +23877,10 @@ class Sprite extends Object3D {
23877
23877
  _geometry = new BufferGeometry();
23878
23878
 
23879
23879
  const float32Array = new Float32Array( [
23880
- - 0.5, - 0.5, 0, 0, 0,
23881
- 0.5, - 0.5, 0, 1, 0,
23880
+ -0.5, -0.5, 0, 0, 0,
23881
+ 0.5, -0.5, 0, 1, 0,
23882
23882
  0.5, 0.5, 0, 1, 1,
23883
- - 0.5, 0.5, 0, 0, 1
23883
+ -0.5, 0.5, 0, 0, 1
23884
23884
  ] );
23885
23885
 
23886
23886
  const interleavedBuffer = new InterleavedBuffer( float32Array, 5 );
@@ -23956,8 +23956,8 @@ class Sprite extends Object3D {
23956
23956
 
23957
23957
  const center = this.center;
23958
23958
 
23959
- transformVertex( _vA.set( - 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23960
- transformVertex( _vB.set( 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23959
+ transformVertex( _vA.set( -0.5, -0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23960
+ transformVertex( _vB.set( 0.5, -0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23961
23961
  transformVertex( _vC.set( 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23962
23962
 
23963
23963
  _uvA.set( 0, 0 );
@@ -23970,7 +23970,7 @@ class Sprite extends Object3D {
23970
23970
  if ( intersect === null ) {
23971
23971
 
23972
23972
  // check second triangle
23973
- transformVertex( _vB.set( - 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23973
+ transformVertex( _vB.set( -0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
23974
23974
  _uvB.set( 0, 1 );
23975
23975
 
23976
23976
  intersect = raycaster.ray.intersectTriangle( _vA, _vC, _vB, false, _intersectPoint );
@@ -25806,7 +25806,7 @@ class Plane {
25806
25806
  */
25807
25807
  negate() {
25808
25808
 
25809
- this.constant *= - 1;
25809
+ this.constant *= -1;
25810
25810
  this.normal.negate();
25811
25811
 
25812
25812
  return this;
@@ -26309,10 +26309,10 @@ class MultiDrawRenderList {
26309
26309
 
26310
26310
  pool.push( {
26311
26311
 
26312
- start: - 1,
26313
- count: - 1,
26314
- z: - 1,
26315
- index: - 1,
26312
+ start: -1,
26313
+ count: -1,
26314
+ z: -1,
26315
+ index: -1,
26316
26316
 
26317
26317
  } );
26318
26318
 
@@ -26884,7 +26884,7 @@ class BatchedMesh extends Mesh {
26884
26884
  * the length of the given geometry index buffer.
26885
26885
  * @return {number} The geometry ID.
26886
26886
  */
26887
- addGeometry( geometry, reservedVertexCount = - 1, reservedIndexCount = - 1 ) {
26887
+ addGeometry( geometry, reservedVertexCount = -1, reservedIndexCount = -1 ) {
26888
26888
 
26889
26889
  this._initializeGeometry( geometry );
26890
26890
 
@@ -26892,17 +26892,17 @@ class BatchedMesh extends Mesh {
26892
26892
 
26893
26893
  const geometryInfo = {
26894
26894
  // geometry information
26895
- vertexStart: - 1,
26896
- vertexCount: - 1,
26897
- reservedVertexCount: - 1,
26895
+ vertexStart: -1,
26896
+ vertexCount: -1,
26897
+ reservedVertexCount: -1,
26898
26898
 
26899
- indexStart: - 1,
26900
- indexCount: - 1,
26901
- reservedIndexCount: - 1,
26899
+ indexStart: -1,
26900
+ indexCount: -1,
26901
+ reservedIndexCount: -1,
26902
26902
 
26903
26903
  // draw range information
26904
- start: - 1,
26905
- count: - 1,
26904
+ start: -1,
26905
+ count: -1,
26906
26906
 
26907
26907
  // state
26908
26908
  boundingBox: null,
@@ -26912,19 +26912,19 @@ class BatchedMesh extends Mesh {
26912
26912
 
26913
26913
  const geometryInfoList = this._geometryInfo;
26914
26914
  geometryInfo.vertexStart = this._nextVertexStart;
26915
- geometryInfo.reservedVertexCount = reservedVertexCount === - 1 ? geometry.getAttribute( 'position' ).count : reservedVertexCount;
26915
+ geometryInfo.reservedVertexCount = reservedVertexCount === -1 ? geometry.getAttribute( 'position' ).count : reservedVertexCount;
26916
26916
 
26917
26917
  const index = geometry.getIndex();
26918
26918
  const hasIndex = index !== null;
26919
26919
  if ( hasIndex ) {
26920
26920
 
26921
26921
  geometryInfo.indexStart = this._nextIndexStart;
26922
- geometryInfo.reservedIndexCount = reservedIndexCount === - 1 ? index.count : reservedIndexCount;
26922
+ geometryInfo.reservedIndexCount = reservedIndexCount === -1 ? index.count : reservedIndexCount;
26923
26923
 
26924
26924
  }
26925
26925
 
26926
26926
  if (
26927
- geometryInfo.indexStart !== - 1 &&
26927
+ geometryInfo.indexStart !== -1 &&
26928
26928
  geometryInfo.indexStart + geometryInfo.reservedIndexCount > this._maxIndexCount ||
26929
26929
  geometryInfo.vertexStart + geometryInfo.reservedVertexCount > this._maxVertexCount
26930
26930
  ) {
@@ -27792,7 +27792,7 @@ class BatchedMesh extends Mesh {
27792
27792
  // get the camera position in the local frame
27793
27793
  _matrix$1.copy( this.matrixWorld ).invert();
27794
27794
  _vector$5.setFromMatrixPosition( camera.matrixWorld ).applyMatrix4( _matrix$1 );
27795
- _forward.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld ).transformDirection( _matrix$1 );
27795
+ _forward.set( 0, 0, -1 ).transformDirection( camera.matrixWorld ).transformDirection( _matrix$1 );
27796
27796
 
27797
27797
  for ( let i = 0, l = instanceInfo.length; i < l; i ++ ) {
27798
27798
 
@@ -29798,7 +29798,7 @@ class Curve {
29798
29798
 
29799
29799
  vec.normalize();
29800
29800
 
29801
- const theta = Math.acos( clamp( tangents[ i - 1 ].dot( tangents[ i ] ), - 1, 1 ) ); // clamp for floating pt errors
29801
+ const theta = Math.acos( clamp( tangents[ i - 1 ].dot( tangents[ i ] ), -1, 1 ) ); // clamp for floating pt errors
29802
29802
 
29803
29803
  normals[ i ].applyMatrix4( mat.makeRotationAxis( vec, theta ) );
29804
29804
 
@@ -29812,7 +29812,7 @@ class Curve {
29812
29812
 
29813
29813
  if ( closed === true ) {
29814
29814
 
29815
- let theta = Math.acos( clamp( normals[ 0 ].dot( normals[ segments ] ), - 1, 1 ) );
29815
+ let theta = Math.acos( clamp( normals[ 0 ].dot( normals[ segments ] ), -1, 1 ) );
29816
29816
  theta /= segments;
29817
29817
 
29818
29818
  if ( tangents[ 0 ].dot( vec.crossVectors( normals[ 0 ], normals[ segments ] ) ) > 0 ) {
@@ -30228,7 +30228,7 @@ function CubicPoly() {
30228
30228
 
30229
30229
  c0 = x0;
30230
30230
  c1 = t0;
30231
- c2 = - 3 * x0 + 3 * x1 - 2 * t0 - t1;
30231
+ c2 = -3 * x0 + 3 * x1 - 2 * t0 - t1;
30232
30232
  c3 = 2 * x0 - 2 * x1 + t0 + t1;
30233
30233
 
30234
30234
  }
@@ -30533,7 +30533,7 @@ function CatmullRom( t, p0, p1, p2, p3 ) {
30533
30533
  const v1 = ( p3 - p1 ) * 0.5;
30534
30534
  const t2 = t * t;
30535
30535
  const t3 = t * t2;
30536
- return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( - 3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1;
30536
+ return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( -3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1;
30537
30537
 
30538
30538
  }
30539
30539
 
@@ -32164,7 +32164,7 @@ class LatheGeometry extends BufferGeometry {
32164
32164
  * @param {number} [phiLength=Math.PI*2] - The radian (0 to 2PI) range of the lathed section 2PI is a
32165
32165
  * closed lathe, less than 2PI is a portion.
32166
32166
  */
32167
- constructor( points = [ new Vector2( 0, - 0.5 ), new Vector2( 0.5, 0 ), new Vector2( 0, 0.5 ) ], segments = 12, phiStart = 0, phiLength = Math.PI * 2 ) {
32167
+ constructor( points = [ new Vector2( 0, -0.5 ), new Vector2( 0.5, 0 ), new Vector2( 0, 0.5 ) ], segments = 12, phiStart = 0, phiLength = Math.PI * 2 ) {
32168
32168
 
32169
32169
  super();
32170
32170
 
@@ -32755,7 +32755,7 @@ class CylinderGeometry extends BufferGeometry {
32755
32755
  let groupCount = 0;
32756
32756
 
32757
32757
  const radius = ( top === true ) ? radiusTop : radiusBottom;
32758
- const sign = ( top === true ) ? 1 : - 1;
32758
+ const sign = ( top === true ) ? 1 : -1;
32759
32759
 
32760
32760
  // first we generate the center vertex data of the cap.
32761
32761
  // because the geometry needs one set of uvs per face,
@@ -33315,10 +33315,10 @@ class DodecahedronGeometry extends PolyhedronGeometry {
33315
33315
  const vertices = [
33316
33316
 
33317
33317
  // (±1, ±1, ±1)
33318
- - 1, - 1, - 1, - 1, - 1, 1,
33319
- - 1, 1, - 1, - 1, 1, 1,
33320
- 1, - 1, - 1, 1, - 1, 1,
33321
- 1, 1, - 1, 1, 1, 1,
33318
+ -1, -1, -1, -1, -1, 1,
33319
+ -1, 1, -1, -1, 1, 1,
33320
+ 1, -1, -1, 1, -1, 1,
33321
+ 1, 1, -1, 1, 1, 1,
33322
33322
 
33323
33323
  // (0, ±1/φ, ±φ)
33324
33324
  0, - r, - t, 0, - r, t,
@@ -34509,7 +34509,7 @@ class ExtrudeGeometry extends BufferGeometry {
34509
34509
  * @param {Shape|Array<Shape>} [shapes] - A shape or an array of shapes.
34510
34510
  * @param {ExtrudeGeometry~Options} [options] - The extrude settings.
34511
34511
  */
34512
- constructor( shapes = new Shape( [ new Vector2( 0.5, 0.5 ), new Vector2( - 0.5, 0.5 ), new Vector2( - 0.5, - 0.5 ), new Vector2( 0.5, - 0.5 ) ] ), options = {} ) {
34512
+ constructor( shapes = new Shape( [ new Vector2( 0.5, 0.5 ), new Vector2( -0.5, 0.5 ), new Vector2( -0.5, -0.5 ), new Vector2( 0.5, -0.5 ) ] ), options = {} ) {
34513
34513
 
34514
34514
  super();
34515
34515
 
@@ -35378,9 +35378,9 @@ class IcosahedronGeometry extends PolyhedronGeometry {
35378
35378
  const t = ( 1 + Math.sqrt( 5 ) ) / 2;
35379
35379
 
35380
35380
  const vertices = [
35381
- - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0,
35382
- 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t,
35383
- t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1
35381
+ -1, t, 0, 1, t, 0, -1, - t, 0, 1, - t, 0,
35382
+ 0, -1, t, 0, 1, t, 0, -1, - t, 0, 1, - t,
35383
+ t, 0, -1, t, 0, 1, - t, 0, -1, - t, 0, 1
35384
35384
  ];
35385
35385
 
35386
35386
  const indices = [
@@ -35446,8 +35446,8 @@ class OctahedronGeometry extends PolyhedronGeometry {
35446
35446
  constructor( radius = 1, detail = 0 ) {
35447
35447
 
35448
35448
  const vertices = [
35449
- 1, 0, 0, - 1, 0, 0, 0, 1, 0,
35450
- 0, - 1, 0, 0, 0, 1, 0, 0, - 1
35449
+ 1, 0, 0, -1, 0, 0, 0, 1, 0,
35450
+ 0, -1, 0, 0, 0, 1, 0, 0, -1
35451
35451
  ];
35452
35452
 
35453
35453
  const indices = [
@@ -35798,7 +35798,7 @@ class ShapeGeometry extends BufferGeometry {
35798
35798
  * @param {Shape|Array<Shape>} [shapes] - A shape or an array of shapes.
35799
35799
  * @param {number} [curveSegments=12] - Number of segments per shape.
35800
35800
  */
35801
- constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( - 0.5, - 0.5 ), new Vector2( 0.5, - 0.5 ) ] ), curveSegments = 12 ) {
35801
+ constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( -0.5, -0.5 ), new Vector2( 0.5, -0.5 ) ] ), curveSegments = 12 ) {
35802
35802
 
35803
35803
  super();
35804
35804
 
@@ -36083,7 +36083,7 @@ class SphereGeometry extends BufferGeometry {
36083
36083
 
36084
36084
  } else if ( iy === heightSegments && thetaEnd === Math.PI ) {
36085
36085
 
36086
- uOffset = - 0.5 / widthSegments;
36086
+ uOffset = -0.5 / widthSegments;
36087
36087
 
36088
36088
  }
36089
36089
 
@@ -36191,7 +36191,7 @@ class TetrahedronGeometry extends PolyhedronGeometry {
36191
36191
  constructor( radius = 1, detail = 0 ) {
36192
36192
 
36193
36193
  const vertices = [
36194
- 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1
36194
+ 1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1
36195
36195
  ];
36196
36196
 
36197
36197
  const indices = [
@@ -36618,7 +36618,7 @@ class TubeGeometry extends BufferGeometry {
36618
36618
  * @param {number} [radialSegments=8] - The number of segments that make up the cross-section.
36619
36619
  * @param {boolean} [closed=false] - Whether the tube is closed or not.
36620
36620
  */
36621
- constructor( path = new QuadraticBezierCurve3( new Vector3( - 1, - 1, 0 ), new Vector3( - 1, 1, 0 ), new Vector3( 1, 1, 0 ) ), tubularSegments = 64, radius = 1, radialSegments = 8, closed = false ) {
36621
+ constructor( path = new QuadraticBezierCurve3( new Vector3( -1, -1, 0 ), new Vector3( -1, 1, 0 ), new Vector3( 1, 1, 0 ) ), tubularSegments = 64, radius = 1, radialSegments = 8, closed = false ) {
36622
36622
 
36623
36623
  super();
36624
36624
 
@@ -40165,7 +40165,7 @@ function subclip( sourceClip, name, startFrame, endFrame, fps = 30 ) {
40165
40165
 
40166
40166
  for ( let i = 0; i < clip.tracks.length; ++ i ) {
40167
40167
 
40168
- clip.tracks[ i ].shift( - 1 * minStartTime );
40168
+ clip.tracks[ i ].shift( -1 * minStartTime );
40169
40169
 
40170
40170
  }
40171
40171
 
@@ -40761,10 +40761,10 @@ class CubicInterpolant extends Interpolant {
40761
40761
 
40762
40762
  super( parameterPositions, sampleValues, sampleSize, resultBuffer );
40763
40763
 
40764
- this._weightPrev = - 0;
40765
- this._offsetPrev = - 0;
40766
- this._weightNext = - 0;
40767
- this._offsetNext = - 0;
40764
+ this._weightPrev = -0;
40765
+ this._offsetPrev = -0;
40766
+ this._weightNext = -0;
40767
+ this._offsetNext = -0;
40768
40768
 
40769
40769
  this.DefaultSettings_ = {
40770
40770
 
@@ -40871,8 +40871,8 @@ class CubicInterpolant extends Interpolant {
40871
40871
  // evaluate polynomials
40872
40872
 
40873
40873
  const sP = - wP * ppp + 2 * wP * pp - wP * p;
40874
- const s0 = ( 1 + wP ) * ppp + ( - 1.5 - 2 * wP ) * pp + ( - 0.5 + wP ) * p + 1;
40875
- const s1 = ( - 1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p;
40874
+ const s0 = ( 1 + wP ) * ppp + ( -1.5 - 2 * wP ) * pp + ( -0.5 + wP ) * p + 1;
40875
+ const s1 = ( -1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p;
40876
40876
  const sN = wN * ppp - wN * pp;
40877
40877
 
40878
40878
  // combine data linearly
@@ -41272,7 +41272,7 @@ class KeyframeTrack {
41272
41272
 
41273
41273
  }
41274
41274
 
41275
- while ( to !== - 1 && times[ to ] > endTime ) {
41275
+ while ( to !== -1 && times[ to ] > endTime ) {
41276
41276
 
41277
41277
  -- to;
41278
41278
 
@@ -41859,7 +41859,7 @@ class AnimationClip {
41859
41859
  * @param {(NormalAnimationBlendMode|AdditiveAnimationBlendMode)} [blendMode=NormalAnimationBlendMode] - Defines how the animation
41860
41860
  * is blended/combined when two or more animations are simultaneously played.
41861
41861
  */
41862
- constructor( name = '', duration = - 1, tracks = [], blendMode = NormalAnimationBlendMode ) {
41862
+ constructor( name = '', duration = -1, tracks = [], blendMode = NormalAnimationBlendMode ) {
41863
41863
 
41864
41864
  /**
41865
41865
  * The clip's name.
@@ -42017,7 +42017,7 @@ class AnimationClip {
42017
42017
 
42018
42018
  }
42019
42019
 
42020
- return new this( name, - 1, tracks );
42020
+ return new this( name, -1, tracks );
42021
42021
 
42022
42022
  }
42023
42023
 
@@ -42162,7 +42162,7 @@ class AnimationClip {
42162
42162
  const blendMode = animation.blendMode;
42163
42163
 
42164
42164
  // automatic length determination in AnimationClip.
42165
- let duration = animation.length || - 1;
42165
+ let duration = animation.length || -1;
42166
42166
 
42167
42167
  const hierarchyTracks = animation.hierarchy || [];
42168
42168
 
@@ -42187,7 +42187,7 @@ class AnimationClip {
42187
42187
 
42188
42188
  for ( let m = 0; m < animationKeys[ k ].morphTargets.length; m ++ ) {
42189
42189
 
42190
- morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = - 1;
42190
+ morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = -1;
42191
42191
 
42192
42192
  }
42193
42193
 
@@ -42759,7 +42759,7 @@ class LoadingManager {
42759
42759
 
42760
42760
  const index = handlers.indexOf( regex );
42761
42761
 
42762
- if ( index !== - 1 ) {
42762
+ if ( index !== -1 ) {
42763
42763
 
42764
42764
  handlers.splice( index, 2 );
42765
42765
 
@@ -44760,13 +44760,13 @@ class PointLightShadow extends LightShadow {
44760
44760
  ];
44761
44761
 
44762
44762
  this._cubeDirections = [
44763
- new Vector3( 1, 0, 0 ), new Vector3( - 1, 0, 0 ), new Vector3( 0, 0, 1 ),
44764
- new Vector3( 0, 0, - 1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, - 1, 0 )
44763
+ new Vector3( 1, 0, 0 ), new Vector3( -1, 0, 0 ), new Vector3( 0, 0, 1 ),
44764
+ new Vector3( 0, 0, -1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, -1, 0 )
44765
44765
  ];
44766
44766
 
44767
44767
  this._cubeUps = [
44768
44768
  new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ),
44769
- new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, - 1 )
44769
+ new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, -1 )
44770
44770
  ];
44771
44771
 
44772
44772
  }
@@ -44947,7 +44947,7 @@ class OrthographicCamera extends Camera {
44947
44947
  * @param {number} [near=0.1] - The camera's near plane.
44948
44948
  * @param {number} [far=2000] - The camera's far plane.
44949
44949
  */
44950
- constructor( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
44950
+ constructor( left = -1, right = 1, top = 1, bottom = -1, near = 0.1, far = 2000 ) {
44951
44951
 
44952
44952
  super();
44953
44953
 
@@ -45175,7 +45175,7 @@ class DirectionalLightShadow extends LightShadow {
45175
45175
  */
45176
45176
  constructor() {
45177
45177
 
45178
- super( new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );
45178
+ super( new OrthographicCamera( -5, 5, 5, -5, 0.5, 500 ) );
45179
45179
 
45180
45180
  /**
45181
45181
  * This flag can be used for type testing.
@@ -46282,7 +46282,7 @@ class LoaderUtils {
46282
46282
 
46283
46283
  const index = url.lastIndexOf( '/' );
46284
46284
 
46285
- if ( index === - 1 ) return './';
46285
+ if ( index === -1 ) return './';
46286
46286
 
46287
46287
  return url.slice( 0, index + 1 );
46288
46288
 
@@ -48592,7 +48592,7 @@ class AudioListener extends Object3D {
48592
48592
 
48593
48593
  this.matrixWorld.decompose( _position$1, _quaternion$1, _scale$1 );
48594
48594
 
48595
- _orientation$1.set( 0, 0, - 1 ).applyQuaternion( _quaternion$1 );
48595
+ _orientation$1.set( 0, 0, -1 ).applyQuaternion( _quaternion$1 );
48596
48596
 
48597
48597
  if ( listener.positionX ) {
48598
48598
 
@@ -50348,7 +50348,7 @@ class PropertyBinding {
50348
50348
 
50349
50349
  const lastDot = results.nodeName && results.nodeName.lastIndexOf( '.' );
50350
50350
 
50351
- if ( lastDot !== undefined && lastDot !== - 1 ) {
50351
+ if ( lastDot !== undefined && lastDot !== -1 ) {
50352
50352
 
50353
50353
  const objectName = results.nodeName.substring( lastDot + 1 );
50354
50354
 
@@ -50356,7 +50356,7 @@ class PropertyBinding {
50356
50356
  // is no way to parse 'foo.bar.baz': 'baz' must be a property, but
50357
50357
  // 'bar' could be the objectName, or part of a nodeName (which can
50358
50358
  // include '.' characters).
50359
- if ( _supportedObjectNames.indexOf( objectName ) !== - 1 ) {
50359
+ if ( _supportedObjectNames.indexOf( objectName ) !== -1 ) {
50360
50360
 
50361
50361
  results.nodeName = results.nodeName.substring( 0, lastDot );
50362
50362
  results.objectName = objectName;
@@ -50386,7 +50386,7 @@ class PropertyBinding {
50386
50386
  */
50387
50387
  static findNode( root, nodeName ) {
50388
50388
 
50389
- if ( nodeName === undefined || nodeName === '' || nodeName === '.' || nodeName === - 1 || nodeName === root.name || nodeName === root.uuid ) {
50389
+ if ( nodeName === undefined || nodeName === '' || nodeName === '.' || nodeName === -1 || nodeName === root.name || nodeName === root.uuid ) {
50390
50390
 
50391
50391
  return root;
50392
50392
 
@@ -51382,7 +51382,7 @@ class AnimationAction {
51382
51382
  * @default LoopRepeat
51383
51383
  */
51384
51384
  this.loop = LoopRepeat;
51385
- this._loopCount = - 1;
51385
+ this._loopCount = -1;
51386
51386
 
51387
51387
  // global mixer time when the action is to be started
51388
51388
  // it's set back to 'null' upon start of the action
@@ -51521,7 +51521,7 @@ class AnimationAction {
51521
51521
  this.enabled = true;
51522
51522
 
51523
51523
  this.time = 0; // restart clip
51524
- this._loopCount = - 1;// forget previous loops
51524
+ this._loopCount = -1;// forget previous loops
51525
51525
  this._startTime = null;// forget scheduling
51526
51526
 
51527
51527
  return this.stopFading().stopWarping();
@@ -52037,7 +52037,7 @@ class AnimationAction {
52037
52037
 
52038
52038
  if ( deltaTime === 0 ) {
52039
52039
 
52040
- if ( loopCount === - 1 ) return time;
52040
+ if ( loopCount === -1 ) return time;
52041
52041
 
52042
52042
  return ( pingPong && ( loopCount & 1 ) === 1 ) ? duration - time : time;
52043
52043
 
@@ -52045,7 +52045,7 @@ class AnimationAction {
52045
52045
 
52046
52046
  if ( loop === LoopOnce ) {
52047
52047
 
52048
- if ( loopCount === - 1 ) {
52048
+ if ( loopCount === -1 ) {
52049
52049
 
52050
52050
  // just started
52051
52051
 
@@ -52079,14 +52079,14 @@ class AnimationAction {
52079
52079
 
52080
52080
  this._mixer.dispatchEvent( {
52081
52081
  type: 'finished', action: this,
52082
- direction: deltaTime < 0 ? - 1 : 1
52082
+ direction: deltaTime < 0 ? -1 : 1
52083
52083
  } );
52084
52084
 
52085
52085
  }
52086
52086
 
52087
52087
  } else { // repetitive Repeat or PingPong
52088
52088
 
52089
- if ( loopCount === - 1 ) {
52089
+ if ( loopCount === -1 ) {
52090
52090
 
52091
52091
  // just started
52092
52092
 
@@ -52132,7 +52132,7 @@ class AnimationAction {
52132
52132
 
52133
52133
  this._mixer.dispatchEvent( {
52134
52134
  type: 'finished', action: this,
52135
- direction: deltaTime > 0 ? 1 : - 1
52135
+ direction: deltaTime > 0 ? 1 : -1
52136
52136
  } );
52137
52137
 
52138
52138
  } else {
@@ -53300,7 +53300,7 @@ class UniformsGroup extends EventDispatcher {
53300
53300
 
53301
53301
  const index = this.uniforms.indexOf( uniform );
53302
53302
 
53303
- if ( index !== - 1 ) this.uniforms.splice( index, 1 );
53303
+ if ( index !== -1 ) this.uniforms.splice( index, 1 );
53304
53304
 
53305
53305
  return this;
53306
53306
 
@@ -53743,7 +53743,7 @@ class Raycaster {
53743
53743
  } else if ( camera.isOrthographicCamera ) {
53744
53744
 
53745
53745
  this.ray.origin.set( coords.x, coords.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) ).unproject( camera ); // set origin in plane of camera
53746
- this.ray.direction.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld );
53746
+ this.ray.direction.set( 0, 0, -1 ).transformDirection( camera.matrixWorld );
53747
53747
  this.camera = camera;
53748
53748
 
53749
53749
  } else {
@@ -53765,7 +53765,7 @@ class Raycaster {
53765
53765
  _matrix.identity().extractRotation( controller.matrixWorld );
53766
53766
 
53767
53767
  this.ray.origin.setFromMatrixPosition( controller.matrixWorld );
53768
- this.ray.direction.set( 0, 0, - 1 ).applyMatrix4( _matrix );
53768
+ this.ray.direction.set( 0, 0, -1 ).applyMatrix4( _matrix );
53769
53769
 
53770
53770
  return this;
53771
53771
 
@@ -53998,7 +53998,7 @@ class Spherical {
53998
53998
  } else {
53999
53999
 
54000
54000
  this.theta = Math.atan2( x, z );
54001
- this.phi = Math.acos( clamp( y / this.radius, - 1, 1 ) );
54001
+ this.phi = Math.acos( clamp( y / this.radius, -1, 1 ) );
54002
54002
 
54003
54003
  }
54004
54004
 
@@ -54899,9 +54899,9 @@ class SpotLightHelper extends Object3D {
54899
54899
  const positions = [
54900
54900
  0, 0, 0, 0, 0, 1,
54901
54901
  0, 0, 0, 1, 0, 1,
54902
- 0, 0, 0, - 1, 0, 1,
54902
+ 0, 0, 0, -1, 0, 1,
54903
54903
  0, 0, 0, 0, 1, 1,
54904
- 0, 0, 0, 0, - 1, 1
54904
+ 0, 0, 0, 0, -1, 1
54905
54905
  ];
54906
54906
 
54907
54907
  for ( let i = 0, j = 1, l = 32; i < l; i ++, j ++ ) {
@@ -55943,7 +55943,7 @@ class CameraHelper extends LineSegments {
55943
55943
  _camera.projectionMatrixInverse.copy( this.camera.projectionMatrixInverse );
55944
55944
 
55945
55945
  // Adjust z values based on coordinate system
55946
- const nearZ = this.camera.coordinateSystem === WebGLCoordinateSystem ? - 1 : 0;
55946
+ const nearZ = this.camera.coordinateSystem === WebGLCoordinateSystem ? -1 : 0;
55947
55947
 
55948
55948
  // center / target
55949
55949
  setPoint( 'c', pointMap, geometry, _camera, 0, 0, nearZ );
@@ -55951,34 +55951,34 @@ class CameraHelper extends LineSegments {
55951
55951
 
55952
55952
  // near
55953
55953
 
55954
- setPoint( 'n1', pointMap, geometry, _camera, - w, - h, nearZ );
55955
- setPoint( 'n2', pointMap, geometry, _camera, w, - h, nearZ );
55956
- setPoint( 'n3', pointMap, geometry, _camera, - w, h, nearZ );
55954
+ setPoint( 'n1', pointMap, geometry, _camera, -1, -1, nearZ );
55955
+ setPoint( 'n2', pointMap, geometry, _camera, w, -1, nearZ );
55956
+ setPoint( 'n3', pointMap, geometry, _camera, -1, h, nearZ );
55957
55957
  setPoint( 'n4', pointMap, geometry, _camera, w, h, nearZ );
55958
55958
 
55959
55959
  // far
55960
55960
 
55961
- setPoint( 'f1', pointMap, geometry, _camera, - w, - h, 1 );
55962
- setPoint( 'f2', pointMap, geometry, _camera, w, - h, 1 );
55963
- setPoint( 'f3', pointMap, geometry, _camera, - w, h, 1 );
55961
+ setPoint( 'f1', pointMap, geometry, _camera, -1, -1, 1 );
55962
+ setPoint( 'f2', pointMap, geometry, _camera, w, -1, 1 );
55963
+ setPoint( 'f3', pointMap, geometry, _camera, -1, h, 1 );
55964
55964
  setPoint( 'f4', pointMap, geometry, _camera, w, h, 1 );
55965
55965
 
55966
55966
  // up
55967
55967
 
55968
55968
  setPoint( 'u1', pointMap, geometry, _camera, w * 0.7, h * 1.1, nearZ );
55969
- setPoint( 'u2', pointMap, geometry, _camera, - w * 0.7, h * 1.1, nearZ );
55969
+ setPoint( 'u2', pointMap, geometry, _camera, -1 * 0.7, h * 1.1, nearZ );
55970
55970
  setPoint( 'u3', pointMap, geometry, _camera, 0, h * 2, nearZ );
55971
55971
 
55972
55972
  // cross
55973
55973
 
55974
- setPoint( 'cf1', pointMap, geometry, _camera, - w, 0, 1 );
55974
+ setPoint( 'cf1', pointMap, geometry, _camera, -1, 0, 1 );
55975
55975
  setPoint( 'cf2', pointMap, geometry, _camera, w, 0, 1 );
55976
- setPoint( 'cf3', pointMap, geometry, _camera, 0, - h, 1 );
55976
+ setPoint( 'cf3', pointMap, geometry, _camera, 0, -1, 1 );
55977
55977
  setPoint( 'cf4', pointMap, geometry, _camera, 0, h, 1 );
55978
55978
 
55979
- setPoint( 'cn1', pointMap, geometry, _camera, - w, 0, nearZ );
55979
+ setPoint( 'cn1', pointMap, geometry, _camera, -1, 0, nearZ );
55980
55980
  setPoint( 'cn2', pointMap, geometry, _camera, w, 0, nearZ );
55981
- setPoint( 'cn3', pointMap, geometry, _camera, 0, - h, nearZ );
55981
+ setPoint( 'cn3', pointMap, geometry, _camera, 0, -1, nearZ );
55982
55982
  setPoint( 'cn4', pointMap, geometry, _camera, 0, h, nearZ );
55983
55983
 
55984
55984
  geometry.getAttribute( 'position' ).needsUpdate = true;
@@ -56185,7 +56185,7 @@ class Box3Helper extends LineSegments {
56185
56185
 
56186
56186
  const indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] );
56187
56187
 
56188
- const positions = [ 1, 1, 1, - 1, 1, 1, - 1, - 1, 1, 1, - 1, 1, 1, 1, - 1, - 1, 1, - 1, - 1, - 1, - 1, 1, - 1, - 1 ];
56188
+ const positions = [ 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1 ];
56189
56189
 
56190
56190
  const geometry = new BufferGeometry();
56191
56191
 
@@ -56261,7 +56261,7 @@ class PlaneHelper extends Line {
56261
56261
 
56262
56262
  const color = hex;
56263
56263
 
56264
- const positions = [ 1, - 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, - 1, 0, 1, 1, 0 ];
56264
+ const positions = [ 1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0 ];
56265
56265
 
56266
56266
  const geometry = new BufferGeometry();
56267
56267
  geometry.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) );
@@ -56286,7 +56286,7 @@ class PlaneHelper extends Line {
56286
56286
  */
56287
56287
  this.size = size;
56288
56288
 
56289
- const positions2 = [ 1, 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, 1, 0, - 1, - 1, 0, 1, - 1, 0 ];
56289
+ const positions2 = [ 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0 ];
56290
56290
 
56291
56291
  const geometry2 = new BufferGeometry();
56292
56292
  geometry2.setAttribute( 'position', new Float32BufferAttribute( positions2, 3 ) );
@@ -56371,7 +56371,7 @@ class ArrowHelper extends Object3D {
56371
56371
  _lineGeometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 0, 1, 0 ], 3 ) );
56372
56372
 
56373
56373
  _coneGeometry = new CylinderGeometry( 0, 0.5, 1, 5, 1 );
56374
- _coneGeometry.translate( 0, - 0.5, 0 );
56374
+ _coneGeometry.translate( 0, -0.5, 0 );
56375
56375
 
56376
56376
  }
56377
56377
 
@@ -56413,7 +56413,7 @@ class ArrowHelper extends Object3D {
56413
56413
 
56414
56414
  this.quaternion.set( 0, 0, 0, 1 );
56415
56415
 
56416
- } else if ( dir.y < - 0.99999 ) {
56416
+ } else if ( dir.y < -0.99999 ) {
56417
56417
 
56418
56418
  this.quaternion.set( 1, 0, 0, 0 );
56419
56419
 
@@ -56980,7 +56980,7 @@ class Controls extends EventDispatcher {
56980
56980
  * @type {number}
56981
56981
  * @default -1
56982
56982
  */
56983
- this.state = - 1;
56983
+ this.state = -1;
56984
56984
 
56985
56985
  /**
56986
56986
  * This object defines the keyboard input of the controls.