Skip to content

Commit c131bb2

Browse files
Merge pull request #1 from sweerwen/translation-zh
translate helper folder
2 parents aa0b669 + 8d9cebb commit c131bb2

17 files changed

+295
-294
lines changed

docs/api/zh/Polyfills.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh">
33
<head>
44
<meta charset="utf-8" />
55
<base href="../../" />
@@ -9,37 +9,37 @@
99
</head>
1010
<body>
1111

12-
<h1>Polyfills</h1>
12+
<h1>差异化支持(腻子)</h1>
1313

14-
<p class="desc">Three.js includes polyfills for the following functions and constants.</p>
14+
<p class="desc">Three.js 包含以下方法和常量的差异化支持.</p>
1515

1616
<h3>[page:Number.EPSILON Number.EPSILON]</h3>
1717
<p>
18-
The difference between one and the smallest value greater than one that can be represented as a Number.
18+
表示1和大于1的最小差值,可表示为 Number.
1919
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON MDN reference].
2020
</p>
2121

2222
<h3>[page:Math.sign Math.sign]( [page:Number x] )</h3>
2323
<p>
24-
If the argument is a positive number, negative number, positive zero or negative zero,
25-
the function will return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.
24+
如果参数为 正数,负数,正零 或 负零,
25+
该方法将分别返回 1, -1, 0 -0 . 否则, 返回 NaN.
2626
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign MDN reference].
2727
</p>
2828

2929
<h3>[page:Function.prototype.name Function.prototype.name]( [page:Number x] )</h3>
3030
<p>
31-
Returns the name of a function, or (before ES6 implementations) an empty string for anonymous functions.
31+
返回方法的名字, 或 (在 ES6 实现之前) 为匿名方法返回一个空字符串.
3232
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name MDN reference].
3333
</p>
3434

3535
<h3>[page:Object.assign Object.assign]( [page:Object target], [page:Object ...sources] )</h3>
3636
<p>
37-
The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object.
38-
It will return the target object.
37+
Object.assign() 方法用于从一个或多个源对象拷贝所有可枚举自身属性到目标对象.
38+
该方法将返回目标对象.
3939
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN reference].
4040
</p>
4141

42-
<h2>Source</h2>
42+
<h2>源码</h2>
4343

4444
[link:https://github.com/mrdoob/three.js/blob/master/src/polyfills.js src/polyfills.js]
4545
</body>

docs/api/zh/helpers/ArrowHelper.html

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh">
33
<head>
44
<meta charset="utf-8" />
55
<base href="../../../" />
@@ -12,10 +12,10 @@
1212

1313
<h1>[name]</h1>
1414

15-
<p class="desc">An 3D arrow object for visualizing directions.</p>
15+
<p class="desc">用于模拟方向的3维箭头对象.</p>
1616

1717

18-
<h2>Example</h2>
18+
<h2>例子</h2>
1919

2020
<div>[example:webgl_geometries WebGL / geometries]</div>
2121
<div>[example:webgl_geometry_normals WebGL / geometry / normals]</div>
@@ -37,61 +37,61 @@ <h2>Example</h2>
3737

3838

3939

40-
<h2>Constructor</h2>
40+
<h2>构造函数</h2>
4141

4242

4343
<h3>[name]([param:Vector3 dir], [param:Vector3 origin], [param:Number length], [param:Number hex], [param:Number headLength], [param:Number headWidth] )</h3>
4444
<p>
45-
[page:Vector3 dir] -- direction from origin. Must be a unit vector. <br />
46-
[page:Vector3 origin] -- Point at which the arrow starts.<br />
47-
[page:Number length] -- length of the arrow. Default is *1*.<br />
48-
[page:Number hex] -- hexadecimal value to define color. Default is 0xffff00.<br />
49-
[page:Number headLength] -- The length of the head of the arrow. Default is 0.2 * length.<br />
50-
[page:Number headWidth] -- The length of the width of the arrow. Default is 0.2 * headLength.
45+
[page:Vector3 dir] -- 基于箭头原点的方向. 必须为单位向量. <br />
46+
[page:Vector3 origin] -- 箭头的原点.<br />
47+
[page:Number length] -- 箭头的长度. 默认为 *1*.<br />
48+
[page:Number hex] -- 定义的16进制颜色值. 默认为 0xffff00.<br />
49+
[page:Number headLength] -- 箭头头部(锥体)的长度. 默认为箭头长度的0.2倍(0.2 * length).<br />
50+
[page:Number headWidth] -- 箭头的宽度. 默认为箭头头部(锥体)长度的0.2倍(0.2 * headLength).
5151
</p>
5252

53-
<h2>Properties</h2>
54-
<p>See the base [page:Object3D] class for common properties.</p>
53+
<h2>属性</h2>
54+
<p>请到基类 [page:Object3D] 页面查看公共属性.</p>
5555

5656

5757
<h3>[property:Line line]</h3>
58-
<p>Contains the line part of the arrowHelper.</p>
58+
<p>包含箭头辅助对象的线段部分.</p>
5959

6060
<h3>[property:Mesh cone]</h3>
61-
<p>Contains the cone part of the arrowHelper.</p>
61+
<p>包含箭头辅助对象的锥体部分.</p>
6262

6363

6464

6565

66-
<h2>Methods</h2>
67-
<p>See the base [page:Object3D] class for common methods.</p>
66+
<h2>方法</h2>
67+
<p>请到基类 [page:Object3D] 页面查看公共方法.</p>
6868

6969

7070

7171
<h3>[method:null setColor]([param:Number hex])</h3>
7272
<p>
73-
hex -- The hexadecimal value of the color.<br /><br />
73+
hex -- 16进制颜色值.<br /><br />
7474

75-
Sets the color of the arrowHelper.
75+
设置箭头辅助对象的颜色.
7676
</p>
7777

7878
<h3>[method:null setLength]([param:Number length], [param:Number headLength], [param:Number headWidth])</h3>
7979
<p>
80-
length -- The desired length.<br />
81-
headLength -- The length of the head of the arrow.<br />
82-
headWidth -- The length of the width of the arrow.<br /><br />
80+
length -- 要设置的长度.<br />
81+
headLength -- 要设置的箭头头部(锥体)的长度.<br />
82+
headWidth -- 要设置的箭头的宽度.<br /><br />
8383

84-
Sets the length of the arrowhelper.
84+
设置箭头辅助对象的长度.
8585
</p>
8686

8787
<h3>[method:null setDirection]([param:Vector3 dir])</h3>
8888
<p>
89-
dir -- The desired direction. Must be a unit vector.<br /><br />
89+
dir -- 要设置的方向. 必须为单位向量.<br /><br />
9090

91-
Sets the direction of the arrowhelper.
91+
设置箭头辅助对象的方向.
9292
</p>
9393

94-
<h2>Source</h2>
94+
<h2>源码</h2>
9595

9696
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
9797
</body>

docs/api/zh/helpers/AxesHelper.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh">
33
<head>
44
<meta charset="utf-8" />
55
<base href="../../../" />
@@ -12,11 +12,11 @@
1212

1313
<h1>[name]</h1>
1414

15-
<p class="desc">An axis object to visualize the 3 axes in a simple way. <br />
16-
The X axis is red. The Y axis is green. The Z axis is blue.</p>
15+
<p class="desc">用于简单模拟3个坐标轴的对象. <br />
16+
红色代表 X 轴. 绿色代表 Y 轴. 蓝色代表 Z .</p>
1717

1818

19-
<h2>Example</h2>
19+
<h2>例子</h2>
2020

2121
<div>[example:webgl_geometries WebGL / geometries]</div>
2222
<div>[example:webgl_geometries2 WebGL / geometries2]</div>
@@ -30,21 +30,21 @@ <h2>Example</h2>
3030
scene.add( axesHelper );
3131
</code>
3232

33-
<h2>Constructor</h2>
33+
<h2>构造函数</h2>
3434

3535

3636
<h3>[name]( [param:Number size] )</h3>
3737
<p>
38-
[page:Number size] -- (optional) size of the lines representing the axes. Default is *1*.
38+
[page:Number size] -- (可选的) 表示代表轴的线段长度. 默认为 *1*.
3939
</p>
4040

41-
<h2>Properties</h2>
42-
<p>See the base [page:LineSegments] class for common properties.</p>
41+
<h2>属性</h2>
42+
<p>请到基类 [page:LineSegments] 页面查看公共属性.</p>
4343

44-
<h2>Methods</h2>
45-
<p>See the base [page:LineSegments] class for common methods.</p>
44+
<h2>方法</h2>
45+
<p>请到基类 [page:LineSegments] 页面查看公共方法.</p>
4646

47-
<h2>Source</h2>
47+
<h2>源码</h2>
4848

4949
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
5050
</body>

docs/api/zh/helpers/Box3Helper.html

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh">
33
<head>
44
<meta charset="utf-8" />
55
<base href="../../../" />
@@ -13,11 +13,11 @@
1313
<h1>[name]</h1>
1414

1515
<p class="desc">
16-
Helper object to visualize a [page:Box3].
16+
模拟3维包围盒 [page:Box3] 的辅助对象.
1717
</p>
1818

1919

20-
<h2>Example</h2>
20+
<h2>例子</h2>
2121

2222
<code>
2323
var box = new THREE.Box3();
@@ -28,36 +28,36 @@ <h2>Example</h2>
2828
</code>
2929

3030

31-
<h2>Constructor</h2>
31+
<h2>构造函数</h2>
3232

3333

3434
<h3>[name]( [param:Box3 box], [param:Color color] )</h3>
3535
<p>
36-
[page:Box3 box] -- the Box3 to show.<br />
37-
[page:Color color] -- (optional) the box's color. Default is 0xffff00.<br /><br />
36+
[page:Box3 box] -- 被模拟的3维包围盒.<br />
37+
[page:Color color] -- (可选的) 线框盒子的颜色. 默认为 0xffff00.<br /><br />
3838

39-
Creates a new wireframe box that represents the passed Box3.
39+
创建一个新的线框盒子用以表示指定的3维包围盒.
4040
</p>
4141

42-
<h2>Properties</h2>
43-
<p>See the base [page:LineSegments] class for common properties.</p>
42+
<h2>属性</h2>
43+
<p>请到基类 [page:LineSegments] 页面查看公共属性.</p>
4444

4545
<h3>[property:Box3 box]</h3>
46-
<p>The Box3 being visualized.</p>
46+
<p>被模拟的3维包围盒.</p>
4747

4848

49-
<h2>Methods</h2>
50-
<p>See the base [page:LineSegments] class for common methods.</p>
49+
<h2>方法</h2>
50+
<p>请到基类 [page:LineSegments] 页面查看公共方法.</p>
5151

5252

5353
<h3>[method:void updateMatrixWorld]( [param:Boolean force] )</h3>
5454
<p>
55-
This overrides the method in the base [page:Object3D] class so that it
56-
also updates the wireframe box to the extent of the [page:Box3Helper.box .box]
57-
property.
55+
重写基类 [page:Object3D] 的该方法以便于
56+
同时更新线框辅助对象与 [page:Box3Helper.box .box]
57+
属性保持一致.
5858
</p>
5959

60-
<h2>Source</h2>
60+
<h2>源码</h2>
6161

6262
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
6363
</body>

docs/api/zh/helpers/BoxHelper.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="zh">
33
<head>
44
<meta charset="utf-8" />
55
<base href="../../../" />
@@ -13,14 +13,14 @@
1313
<h1>[name]</h1>
1414

1515
<p class="desc">
16-
Helper object to show the world-axis-aligned bounding box around an object.
16+
用于展示对象世界轴心对齐的包围盒的辅助对象.
1717

18-
Note that the object must have a [page:Geometry] or [page:BufferGeometry] for this to work,
19-
so it won't work with [page:Sprite Sprites].
18+
注意:要想能正常运行,目标对象必须包含 [page:Geometry] [page:BufferGeometry] ,
19+
所以当目标对象是精灵 [page:Sprite Sprites] 时将不能正常运行.
2020
</p>
2121

2222

23-
<h2>Example</h2>
23+
<h2>例子</h2>
2424

2525
<div>[example:webgl_helpers WebGL / helpers]</div>
2626
<div>[example:webgl_loader_nrrd WebGL / loader / nrrd]</div>
@@ -35,39 +35,39 @@ <h2>Example</h2>
3535
</code>
3636

3737

38-
<h2>Constructor</h2>
38+
<h2>构造函数</h2>
3939

4040

4141
<h3>[name]( [param:Object3D object], [param:Color color] )</h3>
4242
<p>
43-
[page:Object3D object] -- (optional) the object3D to show the world-axis-aligned boundingbox.<br />
44-
[page:Color color] -- (optional) hexadecimal value that defines the box's color. Default is 0xffff00.<br /><br />
43+
[page:Object3D object] -- (可选的) 被展示世界轴心对齐的包围盒的对象.<br />
44+
[page:Color color] -- (可选的) 线框盒子的16进制颜色值. 默认为 0xffff00.<br /><br />
4545

46-
Creates a new wireframe box that bounds the passed object. Internally this uses [page:Box3.setFromObject]
47-
to calculate the dimensions. Note that this includes any children.
46+
创建一个新的线框盒子包围指定的对象. 内部使用 [page:Box3.setFromObject]
47+
方法来计算尺寸. 注意:此线框盒子将包围对象的所有子对象.
4848
</p>
4949

50-
<h2>Properties</h2>
51-
<p>See the base [page:LineSegments] class for common properties.</p>
50+
<h2>属性</h2>
51+
<p>请到基类 [page:LineSegments] 页面查看公共属性.</p>
5252

5353

54-
<h2>Methods</h2>
55-
<p>See the base [page:LineSegments] class for common methods.</p>
54+
<h2>方法</h2>
55+
<p>请到基类 [page:LineSegments] 页面查看公共方法.</p>
5656

5757
<h3>[method:null update]()</h3>
5858
<p>
59-
Updates the helper's geometry to match the dimensions
60-
of the object, including any children. See [page:Box3.setFromObject].
59+
更新辅助对象的几何体,与目标对象尺寸
60+
保持一致, 包围目标对象所有子对象. 请查看 [page:Box3.setFromObject].
6161
</p>
6262

6363
<h3>[method:BoxHelper setFromObject]( [param:Object3D object] )</h3>
6464
<p>
65-
[page:Object3D object] - [page:Object3D] to create the helper of.<br /><br />
65+
[page:Object3D object] - 用于创建辅助对象的目标 [page:Object3D] 对象.<br /><br />
6666

67-
Updates the wireframe box for the passed object.
67+
更新指定对象的线框盒子.
6868
</p>
6969

70-
<h2>Source</h2>
70+
<h2>源码</h2>
7171

7272
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
7373
</body>

0 commit comments

Comments
 (0)