Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
c1afee8f
T
three.js
项目概览
Ablesons
/
three.js
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
three.js
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c1afee8f
编写于
11月 01, 2017
作者:
M
Mr.doob
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
r88
上级
e3cbd305
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
925 addition
and
793 deletion
+925
-793
build/three.js
build/three.js
+78
-13
build/three.min.js
build/three.min.js
+767
-765
build/three.module.js
build/three.module.js
+78
-13
package.json
package.json
+1
-1
src/constants.js
src/constants.js
+1
-1
未找到文件。
build/three.js
浏览文件 @
c1afee8f
...
...
@@ -187,7 +187,7 @@
} );
var REVISION = '88
dev
';
var REVISION = '88';
var MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 };
var CullFaceNone = 0;
var CullFaceBack = 1;
...
...
@@ -20810,7 +20810,11 @@
this.dispose = function () {
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange );
if ( typeof window !== 'undefined' ) {
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange );
}
};
...
...
@@ -35904,6 +35908,26 @@
return points;
},
copy: function ( source ) {
Curve.prototype.copy.call( this, source );
this.curves = [];
for ( var i = 0, l = source.curves.length; i < l; i ++ ) {
var curve = source.curves[ i ];
this.curves.push( curve.clone() );
}
this.autoClose = source.autoClose;
return this;
}
} );
...
...
@@ -36166,13 +36190,13 @@
var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
fromPoints: function ( vector
s ) {
setFromPoints: function ( point
s ) {
this.moveTo(
vectors[ 0 ].x, vector
s[ 0 ].y );
this.moveTo(
points[ 0 ].x, point
s[ 0 ].y );
for ( var i = 1, l =
vector
s.length; i < l; i ++ ) {
for ( var i = 1, l =
point
s.length; i < l; i ++ ) {
this.lineTo(
vectors[ i ].x, vector
s[ i ].y );
this.lineTo(
points[ i ].x, point
s[ i ].y );
}
...
...
@@ -36280,6 +36304,16 @@
var lastPoint = curve.getPoint( 1 );
this.currentPoint.copy( lastPoint );
},
copy: function ( source ) {
CurvePath.prototype.copy.call( this, source );
this.currentPoint.copy( source.currentPoint );
return this;
}
} );
...
...
@@ -36299,7 +36333,7 @@
if ( points ) {
this.
f
romPoints( points );
this.
setF
romPoints( points );
}
...
...
@@ -36319,9 +36353,9 @@
// STEP 3a - Extract points from each shape, turn to vertices
// STEP 3b - Triangulate each shape, add faces.
function Shape() {
function Shape(
points
) {
Path.
apply( this, argume
nts );
Path.
call( this, poi
nts );
this.type = 'Shape';
...
...
@@ -36347,9 +36381,9 @@
},
//
G
et points of shape and holes (keypoints based on segments parameter)
//
g
et points of shape and holes (keypoints based on segments parameter)
extract
All
Points: function ( divisions ) {
extractPoints: function ( divisions ) {
return {
...
...
@@ -36360,9 +36394,21 @@
},
extractPoints: function ( divisions ) {
copy: function ( source ) {
Path.prototype.copy.call( this, source );
this.holes = [];
for ( var i = 0, l = source.holes.length; i < l; i ++ ) {
return this.extractAllPoints( divisions );
var hole = source.holes[ i ];
this.holes.push( hole.clone() );
}
return this;
}
...
...
@@ -43232,6 +43278,19 @@
//
Object.assign( Path.prototype, {
fromPoints: function ( points ) {
console.warn( 'THREE.Path: .fromPoints() has been renamed to .setFromPoints().' );
this.setFromPoints( points );
}
} );
//
function ClosedSplineCurve3( points ) {
console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );
...
...
@@ -43628,6 +43687,12 @@
Object.assign( Shape.prototype, {
extractAllPoints: function ( divisions ) {
console.warn( 'THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.' );
return this.extractPoints( divisions );
},
extrude: function ( options ) {
console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' );
build/three.min.js
浏览文件 @
c1afee8f
此差异已折叠。
点击以展开。
build/three.module.js
浏览文件 @
c1afee8f
...
...
@@ -181,7 +181,7 @@ Object.assign( EventDispatcher.prototype, {
} );
var REVISION = '88
dev
';
var REVISION = '88';
var MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2 };
var CullFaceNone = 0;
var CullFaceBack = 1;
...
...
@@ -20804,7 +20804,11 @@ function WebVRManager( renderer ) {
this.dispose = function () {
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange );
if ( typeof window !== 'undefined' ) {
window.removeEventListener( 'vrdisplaypresentchange', onVRDisplayPresentChange );
}
};
...
...
@@ -35898,6 +35902,26 @@ CurvePath.prototype = Object.assign( Object.create( Curve.prototype ), {
return points;
},
copy: function ( source ) {
Curve.prototype.copy.call( this, source );
this.curves = [];
for ( var i = 0, l = source.curves.length; i < l; i ++ ) {
var curve = source.curves[ i ];
this.curves.push( curve.clone() );
}
this.autoClose = source.autoClose;
return this;
}
} );
...
...
@@ -36160,13 +36184,13 @@ QuadraticBezierCurve.prototype.copy = function ( source ) {
var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
fromPoints: function ( vector
s ) {
setFromPoints: function ( point
s ) {
this.moveTo(
vectors[ 0 ].x, vector
s[ 0 ].y );
this.moveTo(
points[ 0 ].x, point
s[ 0 ].y );
for ( var i = 1, l =
vector
s.length; i < l; i ++ ) {
for ( var i = 1, l =
point
s.length; i < l; i ++ ) {
this.lineTo(
vectors[ i ].x, vector
s[ i ].y );
this.lineTo(
points[ i ].x, point
s[ i ].y );
}
...
...
@@ -36274,6 +36298,16 @@ var PathPrototype = Object.assign( Object.create( CurvePath.prototype ), {
var lastPoint = curve.getPoint( 1 );
this.currentPoint.copy( lastPoint );
},
copy: function ( source ) {
CurvePath.prototype.copy.call( this, source );
this.currentPoint.copy( source.currentPoint );
return this;
}
} );
...
...
@@ -36293,7 +36327,7 @@ function Path( points ) {
if ( points ) {
this.
f
romPoints( points );
this.
setF
romPoints( points );
}
...
...
@@ -36313,9 +36347,9 @@ PathPrototype.constructor = Path;
// STEP 3a - Extract points from each shape, turn to vertices
// STEP 3b - Triangulate each shape, add faces.
function Shape() {
function Shape(
points
) {
Path.
apply( this, argume
nts );
Path.
call( this, poi
nts );
this.type = 'Shape';
...
...
@@ -36341,9 +36375,9 @@ Shape.prototype = Object.assign( Object.create( PathPrototype ), {
},
//
G
et points of shape and holes (keypoints based on segments parameter)
//
g
et points of shape and holes (keypoints based on segments parameter)
extract
All
Points: function ( divisions ) {
extractPoints: function ( divisions ) {
return {
...
...
@@ -36354,9 +36388,21 @@ Shape.prototype = Object.assign( Object.create( PathPrototype ), {
},
extractPoints: function ( divisions ) {
copy: function ( source ) {
Path.prototype.copy.call( this, source );
this.holes = [];
for ( var i = 0, l = source.holes.length; i < l; i ++ ) {
return this.extractAllPoints( divisions );
var hole = source.holes[ i ];
this.holes.push( hole.clone() );
}
return this;
}
...
...
@@ -43226,6 +43272,19 @@ Object.assign( CurvePath.prototype, {
//
Object.assign( Path.prototype, {
fromPoints: function ( points ) {
console.warn( 'THREE.Path: .fromPoints() has been renamed to .setFromPoints().' );
this.setFromPoints( points );
}
} );
//
function ClosedSplineCurve3( points ) {
console.warn( 'THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.' );
...
...
@@ -43622,6 +43681,12 @@ Object.assign( Ray.prototype, {
Object.assign( Shape.prototype, {
extractAllPoints: function ( divisions ) {
console.warn( 'THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead.' );
return this.extractPoints( divisions );
},
extrude: function ( options ) {
console.warn( 'THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead.' );
...
...
package.json
浏览文件 @
c1afee8f
{
"name"
:
"three"
,
"version"
:
"0.8
7.1
"
,
"version"
:
"0.8
8.0
"
,
"description"
:
"JavaScript 3D library"
,
"main"
:
"build/three.js"
,
"repository"
:
"mrdoob/three.js"
,
...
...
src/constants.js
浏览文件 @
c1afee8f
export
var
REVISION
=
'
88
dev
'
;
export
var
REVISION
=
'
88
'
;
export
var
MOUSE
=
{
LEFT
:
0
,
MIDDLE
:
1
,
RIGHT
:
2
};
export
var
CullFaceNone
=
0
;
export
var
CullFaceBack
=
1
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录