Skip to content

Commit db4425a

Browse files
authored
Merge pull request #14865 from nicholas-yangding/translation-zh
Chinese-translation
2 parents 8634304 + 3e91cc2 commit db4425a

File tree

246 files changed

+27962
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

246 files changed

+27962
-0
lines changed

docs/api/zh/Polyfills.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<base href="../../" />
6+
<script src="list.js"></script>
7+
<script src="page.js"></script>
8+
<link type="text/css" rel="stylesheet" href="page.css" />
9+
</head>
10+
<body>
11+
12+
<h1>Polyfills</h1>
13+
14+
<p class="desc">Three.js includes polyfills for the following functions and constants.</p>
15+
16+
<h3>[page:Number.EPSILON Number.EPSILON]</h3>
17+
<p>
18+
The difference between one and the smallest value greater than one that can be represented as a Number.
19+
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON MDN reference].
20+
</p>
21+
22+
<h3>[page:Math.sign Math.sign]( [page:Number x] )</h3>
23+
<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.
26+
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign MDN reference].
27+
</p>
28+
29+
<h3>[page:Function.prototype.name Function.prototype.name]( [page:Number x] )</h3>
30+
<p>
31+
Returns the name of a function, or (before ES6 implementations) an empty string for anonymous functions.
32+
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name MDN reference].
33+
</p>
34+
35+
<h3>[page:Object.assign Object.assign]( [page:Object target], [page:Object ...sources] )</h3>
36+
<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.
39+
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN reference].
40+
</p>
41+
42+
<h2>Source</h2>
43+
44+
[link:https://github.com/mrdoob/three.js/blob/master/src/polyfills.js src/polyfills.js]
45+
</body>
46+
</html>

docs/api/zh/Template.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<base href="../../" />
6+
<script src="list.js"></script>
7+
<script src="page.js"></script>
8+
<link type="text/css" rel="stylesheet" href="page.css" />
9+
</head>
10+
<body>
11+
[page:Geometry] &rarr;
12+
13+
<h1>[name]</h1>
14+
15+
<p class="desc">todo</p>
16+
17+
18+
<h2>Example</h2>
19+
20+
<code>todo</code>
21+
22+
23+
<h2>Constructor</h2>
24+
25+
<h3>[name]([param:Number todo])</h3>
26+
<p></p>
27+
28+
29+
<h2>Properties</h2>
30+
31+
<h3>[property:Number todo]</h3>
32+
<p>
33+
todo
34+
</p>
35+
36+
37+
<h2>Methods</h2>
38+
39+
<h3>[method:null todo]()</h3>
40+
<p>todo</p>
41+
<p>todo</p>
42+
43+
44+
<h2>Source</h2>
45+
46+
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
47+
</body>
48+
</html>

0 commit comments

Comments
 (0)