Skip to content

Commit c1afee8

Browse files
committed
r88
1 parent e3cbd30 commit c1afee8

File tree

5 files changed

+925
-793
lines changed

5 files changed

+925
-793
lines changed

‎build/three.js‎

Lines changed: 78 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187

188188
} );
189189

190-
var REVISION = '88dev';
190+
var REVISION = '88';
191191
var MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 };
192192
var CullFaceNone = 0;
193193
var CullFaceBack = 1;
@@ -20810,7 +20810,11 @@
2081020810

2081120811
this.dispose = function () {
2081220812

20813-
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange );
20813+
if ( typeof window !== 'undefined' ) {
20814+
20815+
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange );
20816+
20817+
}
2081420818

2081520819
};
2081620820

@@ -35904,6 +35908,26 @@
3590435908

3590535909
return points;
3590635910

35911+
},
35912+
35913+
copy: function ( source ) {
35914+
35915+
Curve.prototype.copy.call( this, source );
35916+
35917+
this.curves = [];
35918+
35919+
for ( var i = 0, l = source.curves.length; i < l; i ++ ) {
35920+
35921+
var curve = source.curves[ i ];
35922+
35923+
this.curves.push( curve.clone() );
35924+
35925+
}
35926+
35927+
this.autoClose = source.autoClose;
35928+
35929+
return this;
35930+
3590735931
}
3590835932

3590935933
} );
@@ -36166,13 +36190,13 @@
3616636190

3616736191
var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
3616836192

36169-
fromPoints: function ( vectors ) {
36193+
setFromPoints: function ( points ) {
3617036194

36171-
this.moveTo( vectors[ 0 ].x, vectors[ 0 ].y );
36195+
this.moveTo( points[ 0 ].x, points[ 0 ].y );
3617236196

36173-
for ( var i = 1, l = vectors.length; i < l; i ++ ) {
36197+
for ( var i = 1, l = points.length; i < l; i ++ ) {
3617436198

36175-
this.lineTo( vectors[ i ].x, vectors[ i ].y );
36199+
this.lineTo( points[ i ].x, points[ i ].y );
3617636200

3617736201
}
3617836202

@@ -36280,6 +36304,16 @@
3628036304
var lastPoint = curve.getPoint( 1 );
3628136305
this.currentPoint.copy( lastPoint );
3628236306

36307+
},
36308+
36309+
copy: function ( source ) {
36310+
36311+
CurvePath.prototype.copy.call( this, source );
36312+
36313+
this.currentPoint.copy( source.currentPoint );
36314+
36315+
return this;
36316+
3628336317
}
3628436318

3628536319
} );
@@ -36299,7 +36333,7 @@
3629936333

3630036334
if ( points ) {
3630136335

36302-
this.fromPoints( points );
36336+
this.setFromPoints( points );
3630336337

3630436338
}
3630536339

@@ -36319,9 +36353,9 @@
3631936353
// STEP 3a - Extract points from each shape, turn to vertices
3632036354
// STEP 3b - Triangulate each shape, add faces.
3632136355

36322-
function Shape() {
36356+
function Shape( points ) {
3632336357

36324-
Path.apply( this, arguments );
36358+
Path.call( this, points );
3632536359

3632636360
this.type = 'Shape';
3632736361

@@ -36347,9 +36381,9 @@
3634736381

3634836382
},
3634936383

36350-
// Get points of shape and holes (keypoints based on segments parameter)
36384+
// get points of shape and holes (keypoints based on segments parameter)
3635136385

36352-
extractAllPoints: function ( divisions ) {
36386+
extractPoints: function ( divisions ) {
3635336387

3635436388
return {
3635536389

@@ -36360,9 +36394,21 @@
3636036394

3636136395
},
3636236396

36363-
extractPoints: function ( divisions ) {
36397+
copy: function ( source ) {
36398+
36399+
Path.prototype.copy.call( this, source );
36400+
36401+
this.holes = [];
36402+
36403+
for ( var i = 0, l = source.holes.length; i < l; i ++ ) {
3636436404

36365-
return this.extractAllPoints( divisions );
36405+
var hole = source.holes[ i ];
36406+
36407+
this.holes.push( hole.clone() );
36408+
36409+
}
36410+
36411+
return this;
3636636412

3636736413
}
3636836414

@@ -43232,6 +43278,19 @@
4323243278

4323343279
//
4323443280

43281+
Object.assign( Path.prototype, {
43282+
43283+
fromPoints: function ( points ) {
43284+
43285+
console.warn( 'THREE.Path: .fromPoints() has been renamed to .setFromPoints().' );
43286+
this.setFromPoints( points );
43287+
43288+
}
43289+
43290+
} );
43291+
43292+
//
43293+
4323543294
function ClosedSplineCurve3( points ) {
4323643295

4323743296
console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );
@@ -43628,6 +43687,12 @@
4362843687

4362943688
Object.assign( Shape.prototype, {
4363043689

43690+
extractAllPoints: function ( divisions ) {
43691+
43692+
console.warn( 'THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.' );
43693+
return this.extractPoints( divisions );
43694+
43695+
},
4363143696
extrude: function ( options ) {
4363243697

4363343698
console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' );

0 commit comments

Comments
 (0)