Skip to content

Commit

Permalink
Updated builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Sep 22, 2023
1 parent 2ac424c commit ac901f1
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 98 deletions.
44 changes: 12 additions & 32 deletions build/three.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9357,11 +9357,7 @@ class Color {

this.getHSL( _hslA );

_hslA.h += h; _hslA.s += s; _hslA.l += l;

this.setHSL( _hslA.h, _hslA.s, _hslA.l );

return this;
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );

}

Expand Down Expand Up @@ -39889,21 +39885,6 @@ class LineDashedMaterial extends LineBasicMaterial {

}

// same as Array.prototype.slice, but also works on typed arrays
function arraySlice( array, from, to ) {

if ( isTypedArray( array ) ) {

// in ios9 array.subarray(from, undefined) will return empty array
// but array.subarray(from) or array.subarray(from, len) is correct
return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );

}

return array.slice( from, to );

}

// converts an array to a specific type
function convertArray( array, type, forceClone ) {

Expand Down Expand Up @@ -40167,14 +40148,14 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
// Reference frame is earlier than the first keyframe, so just use the first keyframe
const startIndex = referenceOffset;
const endIndex = referenceValueSize - referenceOffset;
referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
referenceValue = referenceTrack.values.slice( startIndex, endIndex );

} else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) {

// Reference frame is after the last keyframe, so just use the last keyframe
const startIndex = lastIndex * referenceValueSize + referenceOffset;
const endIndex = startIndex + referenceValueSize - referenceOffset;
referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
referenceValue = referenceTrack.values.slice( startIndex, endIndex );

} else {

Expand All @@ -40183,7 +40164,7 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
const startIndex = referenceOffset;
const endIndex = referenceValueSize - referenceOffset;
interpolant.evaluate( referenceTime );
referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );

}

Expand Down Expand Up @@ -40238,7 +40219,6 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
}

const AnimationUtils = {
arraySlice: arraySlice,
convertArray: convertArray,
isTypedArray: isTypedArray,
getKeyframeOrder: getKeyframeOrder,
Expand Down Expand Up @@ -40921,8 +40901,8 @@ class KeyframeTrack {
}

const stride = this.getValueSize();
this.times = arraySlice( times, from, to );
this.values = arraySlice( this.values, from * stride, to * stride );
this.times = times.slice( from, to );
this.values = this.values.slice( from * stride, to * stride );

}

Expand Down Expand Up @@ -41012,8 +40992,8 @@ class KeyframeTrack {
optimize() {

// times or values may be shared with other tracks, so overwriting is unsafe
const times = arraySlice( this.times ),
values = arraySlice( this.values ),
const times = this.times.slice(),
values = this.values.slice(),
stride = this.getValueSize(),

smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
Expand Down Expand Up @@ -41106,8 +41086,8 @@ class KeyframeTrack {

if ( writeIndex !== times.length ) {

this.times = arraySlice( times, 0, writeIndex );
this.values = arraySlice( values, 0, writeIndex * stride );
this.times = times.slice( 0, writeIndex );
this.values = values.slice( 0, writeIndex * stride );

} else {

Expand All @@ -41122,8 +41102,8 @@ class KeyframeTrack {

clone() {

const times = arraySlice( this.times, 0 );
const values = arraySlice( this.values, 0 );
const times = this.times.slice();
const values = this.values.slice();

const TypedKeyframeTrack = this.constructor;
const track = new TypedKeyframeTrack( this.name, times, values );
Expand Down
44 changes: 12 additions & 32 deletions build/three.js
Original file line number Diff line number Diff line change
Expand Up @@ -9362,11 +9362,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

this.getHSL( _hslA );

_hslA.h += h; _hslA.s += s; _hslA.l += l;

this.setHSL( _hslA.h, _hslA.s, _hslA.l );

return this;
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );

}

Expand Down Expand Up @@ -39894,21 +39890,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

}

// same as Array.prototype.slice, but also works on typed arrays
function arraySlice( array, from, to ) {

if ( isTypedArray( array ) ) {

// in ios9 array.subarray(from, undefined) will return empty array
// but array.subarray(from) or array.subarray(from, len) is correct
return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );

}

return array.slice( from, to );

}

// converts an array to a specific type
function convertArray( array, type, forceClone ) {

Expand Down Expand Up @@ -40172,14 +40153,14 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
// Reference frame is earlier than the first keyframe, so just use the first keyframe
const startIndex = referenceOffset;
const endIndex = referenceValueSize - referenceOffset;
referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
referenceValue = referenceTrack.values.slice( startIndex, endIndex );

} else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) {

// Reference frame is after the last keyframe, so just use the last keyframe
const startIndex = lastIndex * referenceValueSize + referenceOffset;
const endIndex = startIndex + referenceValueSize - referenceOffset;
referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
referenceValue = referenceTrack.values.slice( startIndex, endIndex );

} else {

Expand All @@ -40188,7 +40169,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
const startIndex = referenceOffset;
const endIndex = referenceValueSize - referenceOffset;
interpolant.evaluate( referenceTime );
referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );

}

Expand Down Expand Up @@ -40243,7 +40224,6 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
}

const AnimationUtils = {
arraySlice: arraySlice,
convertArray: convertArray,
isTypedArray: isTypedArray,
getKeyframeOrder: getKeyframeOrder,
Expand Down Expand Up @@ -40926,8 +40906,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
}

const stride = this.getValueSize();
this.times = arraySlice( times, from, to );
this.values = arraySlice( this.values, from * stride, to * stride );
this.times = times.slice( from, to );
this.values = this.values.slice( from * stride, to * stride );

}

Expand Down Expand Up @@ -41017,8 +40997,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
optimize() {

// times or values may be shared with other tracks, so overwriting is unsafe
const times = arraySlice( this.times ),
values = arraySlice( this.values ),
const times = this.times.slice(),
values = this.values.slice(),
stride = this.getValueSize(),

smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
Expand Down Expand Up @@ -41111,8 +41091,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

if ( writeIndex !== times.length ) {

this.times = arraySlice( times, 0, writeIndex );
this.values = arraySlice( values, 0, writeIndex * stride );
this.times = times.slice( 0, writeIndex );
this.values = values.slice( 0, writeIndex * stride );

} else {

Expand All @@ -41127,8 +41107,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated

clone() {

const times = arraySlice( this.times, 0 );
const values = arraySlice( this.values, 0 );
const times = this.times.slice();
const values = this.values.slice();

const TypedKeyframeTrack = this.constructor;
const track = new TypedKeyframeTrack( this.name, times, values );
Expand Down
2 changes: 1 addition & 1 deletion build/three.min.js

Large diffs are not rendered by default.

44 changes: 12 additions & 32 deletions build/three.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9355,11 +9355,7 @@ class Color {

this.getHSL( _hslA );

_hslA.h += h; _hslA.s += s; _hslA.l += l;

this.setHSL( _hslA.h, _hslA.s, _hslA.l );

return this;
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );

}

Expand Down Expand Up @@ -39887,21 +39883,6 @@ class LineDashedMaterial extends LineBasicMaterial {

}

// same as Array.prototype.slice, but also works on typed arrays
function arraySlice( array, from, to ) {

if ( isTypedArray( array ) ) {

// in ios9 array.subarray(from, undefined) will return empty array
// but array.subarray(from) or array.subarray(from, len) is correct
return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );

}

return array.slice( from, to );

}

// converts an array to a specific type
function convertArray( array, type, forceClone ) {

Expand Down Expand Up @@ -40165,14 +40146,14 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
// Reference frame is earlier than the first keyframe, so just use the first keyframe
const startIndex = referenceOffset;
const endIndex = referenceValueSize - referenceOffset;
referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
referenceValue = referenceTrack.values.slice( startIndex, endIndex );

} else if ( referenceTime >= referenceTrack.times[ lastIndex ] ) {

// Reference frame is after the last keyframe, so just use the last keyframe
const startIndex = lastIndex * referenceValueSize + referenceOffset;
const endIndex = startIndex + referenceValueSize - referenceOffset;
referenceValue = arraySlice( referenceTrack.values, startIndex, endIndex );
referenceValue = referenceTrack.values.slice( startIndex, endIndex );

} else {

Expand All @@ -40181,7 +40162,7 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
const startIndex = referenceOffset;
const endIndex = referenceValueSize - referenceOffset;
interpolant.evaluate( referenceTime );
referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );

}

Expand Down Expand Up @@ -40236,7 +40217,6 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
}

const AnimationUtils = {
arraySlice: arraySlice,
convertArray: convertArray,
isTypedArray: isTypedArray,
getKeyframeOrder: getKeyframeOrder,
Expand Down Expand Up @@ -40919,8 +40899,8 @@ class KeyframeTrack {
}

const stride = this.getValueSize();
this.times = arraySlice( times, from, to );
this.values = arraySlice( this.values, from * stride, to * stride );
this.times = times.slice( from, to );
this.values = this.values.slice( from * stride, to * stride );

}

Expand Down Expand Up @@ -41010,8 +40990,8 @@ class KeyframeTrack {
optimize() {

// times or values may be shared with other tracks, so overwriting is unsafe
const times = arraySlice( this.times ),
values = arraySlice( this.values ),
const times = this.times.slice(),
values = this.values.slice(),
stride = this.getValueSize(),

smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
Expand Down Expand Up @@ -41104,8 +41084,8 @@ class KeyframeTrack {

if ( writeIndex !== times.length ) {

this.times = arraySlice( times, 0, writeIndex );
this.values = arraySlice( values, 0, writeIndex * stride );
this.times = times.slice( 0, writeIndex );
this.values = values.slice( 0, writeIndex * stride );

} else {

Expand All @@ -41120,8 +41100,8 @@ class KeyframeTrack {

clone() {

const times = arraySlice( this.times, 0 );
const values = arraySlice( this.values, 0 );
const times = this.times.slice();
const values = this.values.slice();

const TypedKeyframeTrack = this.constructor;
const track = new TypedKeyframeTrack( this.name, times, values );
Expand Down
2 changes: 1 addition & 1 deletion build/three.module.min.js

Large diffs are not rendered by default.

0 comments on commit ac901f1

Please sign in to comment.