Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions docs/api/zh/Polyfills.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>

<h1>Polyfills</h1>

<p class="desc">Three.js includes polyfills for the following functions and constants.</p>

<h3>[page:Number.EPSILON Number.EPSILON]</h3>
<p>
The difference between one and the smallest value greater than one that can be represented as a Number.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON MDN reference].
</p>

<h3>[page:Math.sign Math.sign]( [page:Number x] )</h3>
<p>
If the argument is a positive number, negative number, positive zero or negative zero,
the function will return 1, -1, 0 or -0 respectively. Otherwise, NaN is returned.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign MDN reference].
</p>

<h3>[page:Function.prototype.name Function.prototype.name]( [page:Number x] )</h3>
<p>
Returns the name of a function, or (before ES6 implementations) an empty string for anonymous functions.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name MDN reference].
</p>

<h3>[page:Object.assign Object.assign]( [page:Object target], [page:Object ...sources] )</h3>
<p>
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.
It will return the target object.
[link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign MDN reference].
</p>

<h2>Source</h2>

[link:https://github.com/mrdoob/three.js/blob/master/src/polyfills.js src/polyfills.js]
</body>
</html>
48 changes: 48 additions & 0 deletions docs/api/zh/Template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="../../" />
<script src="list.js"></script>
<script src="page.js"></script>
<link type="text/css" rel="stylesheet" href="page.css" />
</head>
<body>
[page:Geometry] &rarr;

<h1>[name]</h1>

<p class="desc">todo</p>


<h2>Example</h2>

<code>todo</code>


<h2>Constructor</h2>

<h3>[name]([param:Number todo])</h3>
<p></p>


<h2>Properties</h2>

<h3>[property:Number todo]</h3>
<p>
todo
</p>


<h2>Methods</h2>

<h3>[method:null todo]()</h3>
<p>todo</p>
<p>todo</p>


<h2>Source</h2>

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