Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Ablesons
three.js
提交
8d3f1ce6
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 搜索 >>
提交
8d3f1ce6
编写于
8月 13, 2015
作者:
D
Daniel Hritzkiv
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prefer one-line constructor+copy in clone methods
上级
9a9d73d4
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
22 addition
and
44 deletion
+22
-44
src/cameras/Camera.js
src/cameras/Camera.js
+1
-2
src/core/BufferGeometry.js
src/core/BufferGeometry.js
+1
-2
src/core/Face3.js
src/core/Face3.js
+1
-2
src/core/Geometry.js
src/core/Geometry.js
+1
-2
src/core/Object3D.js
src/core/Object3D.js
+1
-2
src/materials/Material.js
src/materials/Material.js
+1
-2
src/math/Box2.js
src/math/Box2.js
+1
-2
src/math/Box3.js
src/math/Box3.js
+1
-2
src/math/Frustum.js
src/math/Frustum.js
+1
-2
src/math/Line3.js
src/math/Line3.js
+1
-2
src/math/Matrix3.js
src/math/Matrix3.js
+1
-2
src/math/Plane.js
src/math/Plane.js
+1
-2
src/math/Ray.js
src/math/Ray.js
+1
-2
src/math/Sphere.js
src/math/Sphere.js
+1
-2
src/math/Triangle.js
src/math/Triangle.js
+1
-2
src/objects/Line.js
src/objects/Line.js
+1
-2
src/objects/Mesh.js
src/objects/Mesh.js
+1
-2
src/objects/PointCloud.js
src/objects/PointCloud.js
+1
-2
src/objects/SkinnedMesh.js
src/objects/SkinnedMesh.js
+1
-2
src/objects/Sprite.js
src/objects/Sprite.js
+1
-2
src/renderers/WebGLRenderTarget.js
src/renderers/WebGLRenderTarget.js
+1
-2
src/textures/Texture.js
src/textures/Texture.js
+1
-2
未找到文件。
src/cameras/Camera.js
浏览文件 @
8d3f1ce6
...
...
@@ -52,8 +52,7 @@ THREE.Camera.prototype.lookAt = function () {
THREE
.
Camera
.
prototype
.
clone
=
function
()
{
var
camera
=
new
this
.
constructor
();
return
camera
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
};
...
...
src/core/BufferGeometry.js
浏览文件 @
8d3f1ce6
...
...
@@ -1241,8 +1241,7 @@ THREE.BufferGeometry.prototype = {
clone
:
function
()
{
var
bufferGeometry
=
new
this
.
constructor
();
return
bufferGeometry
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/core/Face3.js
浏览文件 @
8d3f1ce6
...
...
@@ -27,8 +27,7 @@ THREE.Face3.prototype = {
clone
:
function
()
{
var
face
=
new
this
.
constructor
();
return
face
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/core/Geometry.js
浏览文件 @
8d3f1ce6
...
...
@@ -1174,8 +1174,7 @@ THREE.Geometry.prototype = {
clone
:
function
()
{
var
geometry
=
new
this
.
constructor
();
return
geometry
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/core/Object3D.js
浏览文件 @
8d3f1ce6
...
...
@@ -675,8 +675,7 @@ THREE.Object3D.prototype = {
clone
:
function
(
recursive
)
{
var
object
=
new
this
.
constructor
();
return
object
.
copy
(
this
,
recursive
);
return
new
this
.
constructor
().
copy
(
this
,
recursive
);
},
...
...
src/materials/Material.js
浏览文件 @
8d3f1ce6
...
...
@@ -172,8 +172,7 @@ THREE.Material.prototype = {
clone
:
function
()
{
var
material
=
new
this
.
constructor
();
return
material
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Box2.js
浏览文件 @
8d3f1ce6
...
...
@@ -54,8 +54,7 @@ THREE.Box2.prototype = {
clone
:
function
()
{
var
box
=
new
this
.
constructor
();
return
box
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Box3.js
浏览文件 @
8d3f1ce6
...
...
@@ -117,8 +117,7 @@ THREE.Box3.prototype = {
clone
:
function
()
{
var
box
=
new
this
.
constructor
();
return
box
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Frustum.js
浏览文件 @
8d3f1ce6
...
...
@@ -40,8 +40,7 @@ THREE.Frustum.prototype = {
clone
:
function
()
{
var
frustum
=
new
this
.
constructor
();
return
frustum
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Line3.js
浏览文件 @
8d3f1ce6
...
...
@@ -24,8 +24,7 @@ THREE.Line3.prototype = {
clone
:
function
()
{
var
line
=
new
this
.
constructor
();
return
line
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Matrix3.js
浏览文件 @
8d3f1ce6
...
...
@@ -54,8 +54,7 @@ THREE.Matrix3.prototype = {
clone
:
function
()
{
var
matrix
=
new
this
.
constructor
();
return
matrix
.
fromArray
(
this
.
elements
);
return
new
this
.
constructor
().
fromArray
(
this
.
elements
);
},
...
...
src/math/Plane.js
浏览文件 @
8d3f1ce6
...
...
@@ -61,8 +61,7 @@ THREE.Plane.prototype = {
clone
:
function
()
{
var
plane
=
new
this
.
constructor
();
return
plane
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Ray.js
浏览文件 @
8d3f1ce6
...
...
@@ -24,8 +24,7 @@ THREE.Ray.prototype = {
clone
:
function
()
{
var
ray
=
new
this
.
constructor
();
return
ray
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Sphere.js
浏览文件 @
8d3f1ce6
...
...
@@ -59,8 +59,7 @@ THREE.Sphere.prototype = {
clone
:
function
()
{
var
sphere
=
new
this
.
constructor
();
return
sphere
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/math/Triangle.js
浏览文件 @
8d3f1ce6
...
...
@@ -120,8 +120,7 @@ THREE.Triangle.prototype = {
clone
:
function
()
{
var
triangle
=
new
this
.
constructor
();
return
triangle
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/objects/Line.js
浏览文件 @
8d3f1ce6
...
...
@@ -185,8 +185,7 @@ THREE.Line.prototype.raycast = ( function () {
THREE
.
Line
.
prototype
.
clone
=
function
()
{
var
line
=
new
this
.
constructor
(
this
.
geometry
,
this
.
material
);
return
line
.
copy
(
this
);
return
new
this
.
constructor
(
this
.
geometry
,
this
.
material
).
copy
(
this
);
};
...
...
src/objects/Mesh.js
浏览文件 @
8d3f1ce6
...
...
@@ -307,8 +307,7 @@ THREE.Mesh.prototype.raycast = ( function () {
THREE
.
Mesh
.
prototype
.
clone
=
function
()
{
var
mesh
=
new
this
.
constructor
(
this
.
geometry
,
this
.
material
);
return
mesh
.
copy
(
this
);
return
new
this
.
constructor
(
this
.
geometry
,
this
.
material
).
copy
(
this
);
};
...
...
src/objects/PointCloud.js
浏览文件 @
8d3f1ce6
...
...
@@ -138,8 +138,7 @@ THREE.PointCloud.prototype.raycast = ( function () {
THREE
.
PointCloud
.
prototype
.
clone
=
function
()
{
var
pointCloud
=
new
this
.
constructor
(
this
.
geometry
,
this
.
material
);
return
pointCloud
.
copy
(
this
);
return
new
this
.
constructor
(
this
.
geometry
,
this
.
material
).
copy
(
this
);
};
...
...
src/objects/SkinnedMesh.js
浏览文件 @
8d3f1ce6
...
...
@@ -145,7 +145,6 @@ THREE.SkinnedMesh.prototype.updateMatrixWorld = function( force ) {
THREE
.
SkinnedMesh
.
prototype
.
clone
=
function
()
{
var
skinMesh
=
new
this
.
constructor
(
this
.
geometry
,
this
.
material
,
this
.
useVertexTexture
);
return
skinMesh
.
copy
(
this
);
return
new
this
.
constructor
(
this
.
geometry
,
this
.
material
,
this
.
useVertexTexture
).
copy
(
this
);
};
src/objects/Sprite.js
浏览文件 @
8d3f1ce6
...
...
@@ -62,8 +62,7 @@ THREE.Sprite.prototype.raycast = ( function () {
THREE
.
Sprite
.
prototype
.
clone
=
function
()
{
var
sprite
=
new
this
.
constructor
(
this
.
material
);
return
sprite
.
copy
(
this
);
return
new
this
.
constructor
(
this
.
material
).
copy
(
this
);
};
...
...
src/renderers/WebGLRenderTarget.js
浏览文件 @
8d3f1ce6
...
...
@@ -54,8 +54,7 @@ THREE.WebGLRenderTarget.prototype = {
clone
:
function
()
{
var
renderTarget
=
new
this
.
constructor
();
return
renderTarget
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
src/textures/Texture.js
浏览文件 @
8d3f1ce6
...
...
@@ -57,8 +57,7 @@ THREE.Texture.prototype = {
clone
:
function
()
{
var
texture
=
new
this
.
constructor
();
return
texture
.
copy
(
this
);
return
new
this
.
constructor
().
copy
(
this
);
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录