Skip to content

Commit ac901f1

Browse files
committed
Updated builds.
1 parent 2ac424c commit ac901f1

File tree

5 files changed

+38
-98
lines changed

5 files changed

+38
-98
lines changed

build/three.cjs

+12-32
Original file line numberDiff line numberDiff line change
@@ -9357,11 +9357,7 @@ class Color {
93579357

93589358
this.getHSL( _hslA );
93599359

9360-
_hslA.h += h; _hslA.s += s; _hslA.l += l;
9361-
9362-
this.setHSL( _hslA.h, _hslA.s, _hslA.l );
9363-
9364-
return this;
9360+
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
93659361

93669362
}
93679363

@@ -39889,21 +39885,6 @@ class LineDashedMaterial extends LineBasicMaterial {
3988939885

3989039886
}
3989139887

39892-
// same as Array.prototype.slice, but also works on typed arrays
39893-
function arraySlice( array, from, to ) {
39894-
39895-
if ( isTypedArray( array ) ) {
39896-
39897-
// in ios9 array.subarray(from, undefined) will return empty array
39898-
// but array.subarray(from) or array.subarray(from, len) is correct
39899-
return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );
39900-
39901-
}
39902-
39903-
return array.slice( from, to );
39904-
39905-
}
39906-
3990739888
// converts an array to a specific type
3990839889
function convertArray( array, type, forceClone ) {
3990939890

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

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

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

4017940160
} else {
4018040161

@@ -40183,7 +40164,7 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
4018340164
const startIndex = referenceOffset;
4018440165
const endIndex = referenceValueSize - referenceOffset;
4018540166
interpolant.evaluate( referenceTime );
40186-
referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
40167+
referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );
4018740168

4018840169
}
4018940170

@@ -40238,7 +40219,6 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
4023840219
}
4023940220

4024040221
const AnimationUtils = {
40241-
arraySlice: arraySlice,
4024240222
convertArray: convertArray,
4024340223
isTypedArray: isTypedArray,
4024440224
getKeyframeOrder: getKeyframeOrder,
@@ -40921,8 +40901,8 @@ class KeyframeTrack {
4092140901
}
4092240902

4092340903
const stride = this.getValueSize();
40924-
this.times = arraySlice( times, from, to );
40925-
this.values = arraySlice( this.values, from * stride, to * stride );
40904+
this.times = times.slice( from, to );
40905+
this.values = this.values.slice( from * stride, to * stride );
4092640906

4092740907
}
4092840908

@@ -41012,8 +40992,8 @@ class KeyframeTrack {
4101240992
optimize() {
4101340993

4101440994
// times or values may be shared with other tracks, so overwriting is unsafe
41015-
const times = arraySlice( this.times ),
41016-
values = arraySlice( this.values ),
40995+
const times = this.times.slice(),
40996+
values = this.values.slice(),
4101740997
stride = this.getValueSize(),
4101840998

4101940999
smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
@@ -41106,8 +41086,8 @@ class KeyframeTrack {
4110641086

4110741087
if ( writeIndex !== times.length ) {
4110841088

41109-
this.times = arraySlice( times, 0, writeIndex );
41110-
this.values = arraySlice( values, 0, writeIndex * stride );
41089+
this.times = times.slice( 0, writeIndex );
41090+
this.values = values.slice( 0, writeIndex * stride );
4111141091

4111241092
} else {
4111341093

@@ -41122,8 +41102,8 @@ class KeyframeTrack {
4112241102

4112341103
clone() {
4112441104

41125-
const times = arraySlice( this.times, 0 );
41126-
const values = arraySlice( this.values, 0 );
41105+
const times = this.times.slice();
41106+
const values = this.values.slice();
4112741107

4112841108
const TypedKeyframeTrack = this.constructor;
4112941109
const track = new TypedKeyframeTrack( this.name, times, values );

build/three.js

+12-32
Original file line numberDiff line numberDiff line change
@@ -9362,11 +9362,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
93629362

93639363
this.getHSL( _hslA );
93649364

9365-
_hslA.h += h; _hslA.s += s; _hslA.l += l;
9366-
9367-
this.setHSL( _hslA.h, _hslA.s, _hslA.l );
9368-
9369-
return this;
9365+
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
93709366

93719367
}
93729368

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

3989539891
}
3989639892

39897-
// same as Array.prototype.slice, but also works on typed arrays
39898-
function arraySlice( array, from, to ) {
39899-
39900-
if ( isTypedArray( array ) ) {
39901-
39902-
// in ios9 array.subarray(from, undefined) will return empty array
39903-
// but array.subarray(from) or array.subarray(from, len) is correct
39904-
return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );
39905-
39906-
}
39907-
39908-
return array.slice( from, to );
39909-
39910-
}
39911-
3991239893
// converts an array to a specific type
3991339894
function convertArray( array, type, forceClone ) {
3991439895

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

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

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

4018440165
} else {
4018540166

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

4019340174
}
4019440175

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

4024540226
const AnimationUtils = {
40246-
arraySlice: arraySlice,
4024740227
convertArray: convertArray,
4024840228
isTypedArray: isTypedArray,
4024940229
getKeyframeOrder: getKeyframeOrder,
@@ -40926,8 +40906,8 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
4092640906
}
4092740907

4092840908
const stride = this.getValueSize();
40929-
this.times = arraySlice( times, from, to );
40930-
this.values = arraySlice( this.values, from * stride, to * stride );
40909+
this.times = times.slice( from, to );
40910+
this.values = this.values.slice( from * stride, to * stride );
4093140911

4093240912
}
4093340913

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

4101940999
// times or values may be shared with other tracks, so overwriting is unsafe
41020-
const times = arraySlice( this.times ),
41021-
values = arraySlice( this.values ),
41000+
const times = this.times.slice(),
41001+
values = this.values.slice(),
4102241002
stride = this.getValueSize(),
4102341003

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

4111241092
if ( writeIndex !== times.length ) {
4111341093

41114-
this.times = arraySlice( times, 0, writeIndex );
41115-
this.values = arraySlice( values, 0, writeIndex * stride );
41094+
this.times = times.slice( 0, writeIndex );
41095+
this.values = values.slice( 0, writeIndex * stride );
4111641096

4111741097
} else {
4111841098

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

4112841108
clone() {
4112941109

41130-
const times = arraySlice( this.times, 0 );
41131-
const values = arraySlice( this.values, 0 );
41110+
const times = this.times.slice();
41111+
const values = this.values.slice();
4113241112

4113341113
const TypedKeyframeTrack = this.constructor;
4113441114
const track = new TypedKeyframeTrack( this.name, times, values );

build/three.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

+12-32
Original file line numberDiff line numberDiff line change
@@ -9355,11 +9355,7 @@ class Color {
93559355

93569356
this.getHSL( _hslA );
93579357

9358-
_hslA.h += h; _hslA.s += s; _hslA.l += l;
9359-
9360-
this.setHSL( _hslA.h, _hslA.s, _hslA.l );
9361-
9362-
return this;
9358+
return this.setHSL( _hslA.h + h, _hslA.s + s, _hslA.l + l );
93639359

93649360
}
93659361

@@ -39887,21 +39883,6 @@ class LineDashedMaterial extends LineBasicMaterial {
3988739883

3988839884
}
3988939885

39890-
// same as Array.prototype.slice, but also works on typed arrays
39891-
function arraySlice( array, from, to ) {
39892-
39893-
if ( isTypedArray( array ) ) {
39894-
39895-
// in ios9 array.subarray(from, undefined) will return empty array
39896-
// but array.subarray(from) or array.subarray(from, len) is correct
39897-
return new array.constructor( array.subarray( from, to !== undefined ? to : array.length ) );
39898-
39899-
}
39900-
39901-
return array.slice( from, to );
39902-
39903-
}
39904-
3990539886
// converts an array to a specific type
3990639887
function convertArray( array, type, forceClone ) {
3990739888

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

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

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

4017740158
} else {
4017840159

@@ -40181,7 +40162,7 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
4018140162
const startIndex = referenceOffset;
4018240163
const endIndex = referenceValueSize - referenceOffset;
4018340164
interpolant.evaluate( referenceTime );
40184-
referenceValue = arraySlice( interpolant.resultBuffer, startIndex, endIndex );
40165+
referenceValue = interpolant.resultBuffer.slice( startIndex, endIndex );
4018540166

4018640167
}
4018740168

@@ -40236,7 +40217,6 @@ function makeClipAdditive( targetClip, referenceFrame = 0, referenceClip = targe
4023640217
}
4023740218

4023840219
const AnimationUtils = {
40239-
arraySlice: arraySlice,
4024040220
convertArray: convertArray,
4024140221
isTypedArray: isTypedArray,
4024240222
getKeyframeOrder: getKeyframeOrder,
@@ -40919,8 +40899,8 @@ class KeyframeTrack {
4091940899
}
4092040900

4092140901
const stride = this.getValueSize();
40922-
this.times = arraySlice( times, from, to );
40923-
this.values = arraySlice( this.values, from * stride, to * stride );
40902+
this.times = times.slice( from, to );
40903+
this.values = this.values.slice( from * stride, to * stride );
4092440904

4092540905
}
4092640906

@@ -41010,8 +40990,8 @@ class KeyframeTrack {
4101040990
optimize() {
4101140991

4101240992
// times or values may be shared with other tracks, so overwriting is unsafe
41013-
const times = arraySlice( this.times ),
41014-
values = arraySlice( this.values ),
40993+
const times = this.times.slice(),
40994+
values = this.values.slice(),
4101540995
stride = this.getValueSize(),
4101640996

4101740997
smoothInterpolation = this.getInterpolation() === InterpolateSmooth,
@@ -41104,8 +41084,8 @@ class KeyframeTrack {
4110441084

4110541085
if ( writeIndex !== times.length ) {
4110641086

41107-
this.times = arraySlice( times, 0, writeIndex );
41108-
this.values = arraySlice( values, 0, writeIndex * stride );
41087+
this.times = times.slice( 0, writeIndex );
41088+
this.values = values.slice( 0, writeIndex * stride );
4110941089

4111041090
} else {
4111141091

@@ -41120,8 +41100,8 @@ class KeyframeTrack {
4112041100

4112141101
clone() {
4112241102

41123-
const times = arraySlice( this.times, 0 );
41124-
const values = arraySlice( this.values, 0 );
41103+
const times = this.times.slice();
41104+
const values = this.values.slice();
4112541105

4112641106
const TypedKeyframeTrack = this.constructor;
4112741107
const track = new TypedKeyframeTrack( this.name, times, values );

build/three.module.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)