Skip to content

Commit 9c5816e

Browse files
committed
Update builds.
1 parent fd6335c commit 9c5816e

File tree

3 files changed

+212
-140
lines changed

3 files changed

+212
-140
lines changed

build/three.js

Lines changed: 67 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,7 @@
10721072
set: function ( value ) {
10731073

10741074
this._x = value;
1075-
this.onChangeCallback();
1075+
this._onChangeCallback();
10761076

10771077
}
10781078

@@ -1089,7 +1089,7 @@
10891089
set: function ( value ) {
10901090

10911091
this._y = value;
1092-
this.onChangeCallback();
1092+
this._onChangeCallback();
10931093

10941094
}
10951095

@@ -1106,7 +1106,7 @@
11061106
set: function ( value ) {
11071107

11081108
this._z = value;
1109-
this.onChangeCallback();
1109+
this._onChangeCallback();
11101110

11111111
}
11121112

@@ -1123,7 +1123,7 @@
11231123
set: function ( value ) {
11241124

11251125
this._w = value;
1126-
this.onChangeCallback();
1126+
this._onChangeCallback();
11271127

11281128
}
11291129

@@ -1142,7 +1142,7 @@
11421142
this._z = z;
11431143
this._w = w;
11441144

1145-
this.onChangeCallback();
1145+
this._onChangeCallback();
11461146

11471147
return this;
11481148

@@ -1161,7 +1161,7 @@
11611161
this._z = quaternion.z;
11621162
this._w = quaternion.w;
11631163

1164-
this.onChangeCallback();
1164+
this._onChangeCallback();
11651165

11661166
return this;
11671167

@@ -1236,7 +1236,7 @@
12361236

12371237
}
12381238

1239-
if ( update !== false ) this.onChangeCallback();
1239+
if ( update !== false ) this._onChangeCallback();
12401240

12411241
return this;
12421242

@@ -1255,7 +1255,7 @@
12551255
this._z = axis.z * s;
12561256
this._w = Math.cos( halfAngle );
12571257

1258-
this.onChangeCallback();
1258+
this._onChangeCallback();
12591259

12601260
return this;
12611261

@@ -1314,7 +1314,7 @@
13141314

13151315
}
13161316

1317-
this.onChangeCallback();
1317+
this._onChangeCallback();
13181318

13191319
return this;
13201320

@@ -1397,7 +1397,7 @@
13971397
this._y *= - 1;
13981398
this._z *= - 1;
13991399

1400-
this.onChangeCallback();
1400+
this._onChangeCallback();
14011401

14021402
return this;
14031403

@@ -1443,7 +1443,7 @@
14431443

14441444
}
14451445

1446-
this.onChangeCallback();
1446+
this._onChangeCallback();
14471447

14481448
return this;
14491449

@@ -1480,7 +1480,7 @@
14801480
this._z = qaz * qbw + qaw * qbz + qax * qby - qay * qbx;
14811481
this._w = qaw * qbw - qax * qbx - qay * qby - qaz * qbz;
14821482

1483-
this.onChangeCallback();
1483+
this._onChangeCallback();
14841484

14851485
return this;
14861486

@@ -1547,7 +1547,7 @@
15471547
this._y = ( y * ratioA + this._y * ratioB );
15481548
this._z = ( z * ratioA + this._z * ratioB );
15491549

1550-
this.onChangeCallback();
1550+
this._onChangeCallback();
15511551

15521552
return this;
15531553

@@ -1568,7 +1568,7 @@
15681568
this._z = array[ offset + 2 ];
15691569
this._w = array[ offset + 3 ];
15701570

1571-
this.onChangeCallback();
1571+
this._onChangeCallback();
15721572

15731573
return this;
15741574

@@ -1588,15 +1588,15 @@
15881588

15891589
},
15901590

1591-
onChange: function ( callback ) {
1591+
_onChange: function ( callback ) {
15921592

1593-
this.onChangeCallback = callback;
1593+
this._onChangeCallback = callback;
15941594

15951595
return this;
15961596

15971597
},
15981598

1599-
onChangeCallback: function () {}
1599+
_onChangeCallback: function () {}
16001600

16011601
} );
16021602

@@ -3089,6 +3089,42 @@
30893089

30903090
}
30913091

3092+
Object.defineProperties( Vector4.prototype, {
3093+
3094+
"width": {
3095+
3096+
get: function () {
3097+
3098+
return this.z;
3099+
3100+
},
3101+
3102+
set: function ( value ) {
3103+
3104+
this.z = value;
3105+
3106+
}
3107+
3108+
},
3109+
3110+
"height": {
3111+
3112+
get: function () {
3113+
3114+
return this.w;
3115+
3116+
},
3117+
3118+
set: function ( value ) {
3119+
3120+
this.w = value;
3121+
3122+
}
3123+
3124+
}
3125+
3126+
} );
3127+
30923128
Object.assign( Vector4.prototype, {
30933129

30943130
isVector4: true,
@@ -7915,7 +7951,7 @@
79157951
set: function ( value ) {
79167952

79177953
this._x = value;
7918-
this.onChangeCallback();
7954+
this._onChangeCallback();
79197955

79207956
}
79217957

@@ -7932,7 +7968,7 @@
79327968
set: function ( value ) {
79337969

79347970
this._y = value;
7935-
this.onChangeCallback();
7971+
this._onChangeCallback();
79367972

79377973
}
79387974

@@ -7949,7 +7985,7 @@
79497985
set: function ( value ) {
79507986

79517987
this._z = value;
7952-
this.onChangeCallback();
7988+
this._onChangeCallback();
79537989

79547990
}
79557991

@@ -7966,7 +8002,7 @@
79668002
set: function ( value ) {
79678003

79688004
this._order = value;
7969-
this.onChangeCallback();
8005+
this._onChangeCallback();
79708006

79718007
}
79728008

@@ -7985,7 +8021,7 @@
79858021
this._z = z;
79868022
this._order = order || this._order;
79878023

7988-
this.onChangeCallback();
8024+
this._onChangeCallback();
79898025

79908026
return this;
79918027

@@ -8004,7 +8040,7 @@
80048040
this._z = euler._z;
80058041
this._order = euler._order;
80068042

8007-
this.onChangeCallback();
8043+
this._onChangeCallback();
80088044

80098045
return this;
80108046

@@ -8127,7 +8163,7 @@
81278163

81288164
this._order = order;
81298165

8130-
if ( update !== false ) this.onChangeCallback();
8166+
if ( update !== false ) this._onChangeCallback();
81318167

81328168
return this;
81338169

@@ -8182,7 +8218,7 @@
81828218
this._z = array[ 2 ];
81838219
if ( array[ 3 ] !== undefined ) this._order = array[ 3 ];
81848220

8185-
this.onChangeCallback();
8221+
this._onChangeCallback();
81868222

81878223
return this;
81888224

@@ -8216,15 +8252,15 @@
82168252

82178253
},
82188254

8219-
onChange: function ( callback ) {
8255+
_onChange: function ( callback ) {
82208256

8221-
this.onChangeCallback = callback;
8257+
this._onChangeCallback = callback;
82228258

82238259
return this;
82248260

82258261
},
82268262

8227-
onChangeCallback: function () {}
8263+
_onChangeCallback: function () {}
82288264

82298265
} );
82308266

@@ -8313,8 +8349,8 @@
83138349

83148350
}
83158351

8316-
rotation.onChange( onRotationChange );
8317-
quaternion.onChange( onQuaternionChange );
8352+
rotation._onChange( onRotationChange );
8353+
quaternion._onChange( onQuaternionChange );
83188354

83198355
Object.defineProperties( this, {
83208356
position: {
@@ -20699,7 +20735,7 @@
2069920735

2070020736
_gl.pixelStorei( 37440, texture.flipY );
2070120737

20702-
var isCompressed = ( texture.image[ 0 ] && texture.image[ 0 ].isCompressedTexture );
20738+
var isCompressed = ( texture && texture.isCompressedTexture );
2070320739
var isDataTexture = ( texture.image[ 0 ] && texture.image[ 0 ].isDataTexture );
2070420740

2070520741
var cubeImage = [];

0 commit comments

Comments
 (0)