|
|
@@ -59,32 +59,18 @@
|
|
|
<?js } ?>
|
|
|
</div>
|
|
|
|
|
|
- <?js if (doc.augments && doc.augments.length) { ?>
|
|
|
- <h3 class="subsection-title">Extends</h3>
|
|
|
-
|
|
|
- <?js= self.partial('augments.tmpl', doc) ?>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
<?js if (doc.import) { ?>
|
|
|
- <h3 class="subsection-title">Import</h3>
|
|
|
- <?js= doc.name ?> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.
|
|
|
+ <h2 class="subsection-title">Import</h2>
|
|
|
+ <p><?js= doc.name ?> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
|
|
|
<pre class="prettyprint source lang-js"><code><?js= doc.import ?></code></pre>
|
|
|
<?js } ?>
|
|
|
|
|
|
- <?js if (doc.requires && doc.requires.length) { ?>
|
|
|
- <h3 class="subsection-title">Requires</h3>
|
|
|
-
|
|
|
- <ul><?js doc.requires.forEach(function(r) { ?>
|
|
|
- <li><?js= self.linkto(r, r) ?></li>
|
|
|
- <?js }); ?></ul>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
<?js
|
|
|
var ignoreInheritedSymbols = { ...(self.ignoreInheritedSymbols ? { inherited: {isUndefined: true} } : {}) };
|
|
|
var classes = self.find({kind: 'class', memberof: doc.longname});
|
|
|
if (!isGlobalPage && classes && classes.length) {
|
|
|
?>
|
|
|
- <h3 class="subsection-title">Classes</h3>
|
|
|
+ <h2 class="subsection-title">Classes</h2>
|
|
|
|
|
|
<dl><?js classes.forEach(function(c) { ?>
|
|
|
<dt><?js= self.linkto(c.longname, c.name) ?></dt>
|
|
|
@@ -92,42 +78,6 @@
|
|
|
<?js }); ?></dl>
|
|
|
<?js } ?>
|
|
|
|
|
|
- <?js
|
|
|
- var interfaces = self.find({kind: 'interface', memberof: doc.longname, ...ignoreInheritedSymbols});
|
|
|
- if (!isGlobalPage && interfaces && interfaces.length) {
|
|
|
- ?>
|
|
|
- <h3 class="subsection-title">Interfaces</h3>
|
|
|
-
|
|
|
- <dl><?js interfaces.forEach(function(i) { ?>
|
|
|
- <dt><?js= self.linkto(i.longname, i.name) ?></dt>
|
|
|
- <dd><?js if (i.summary) { ?><?js= i.summary ?><?js } ?></dd>
|
|
|
- <?js }); ?></dl>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
- <?js
|
|
|
- var mixins = self.find({kind: 'mixin', memberof: doc.longname, ...ignoreInheritedSymbols});
|
|
|
- if (!isGlobalPage && mixins && mixins.length) {
|
|
|
- ?>
|
|
|
- <h3 class="subsection-title">Mixins</h3>
|
|
|
-
|
|
|
- <dl><?js mixins.forEach(function(m) { ?>
|
|
|
- <dt><?js= self.linkto(m.longname, m.name) ?></dt>
|
|
|
- <dd><?js if (m.summary) { ?><?js= m.summary ?><?js } ?></dd>
|
|
|
- <?js }); ?></dl>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
- <?js
|
|
|
- var namespaces = self.find({kind: 'namespace', memberof: doc.longname, ...ignoreInheritedSymbols});
|
|
|
- if (!isGlobalPage && namespaces && namespaces.length) {
|
|
|
- ?>
|
|
|
- <h3 class="subsection-title">Namespaces</h3>
|
|
|
-
|
|
|
- <dl><?js namespaces.forEach(function(n) { ?>
|
|
|
- <dt><?js= self.linkto(n.longname, n.name) ?></dt>
|
|
|
- <dd><?js if (n.summary) { ?><?js= n.summary ?><?js } ?></dd>
|
|
|
- <?js }); ?></dl>
|
|
|
- <?js } ?>
|
|
|
-
|
|
|
<?js
|
|
|
var members = self.find({kind: 'member', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...ignoreInheritedSymbols});
|
|
|
|
|
|
@@ -139,7 +89,7 @@
|
|
|
}
|
|
|
if (members && members.length && members.forEach) {
|
|
|
?>
|
|
|
- <h3 class="subsection-title">Members</h3>
|
|
|
+ <h2 class="subsection-title">Properties</h2>
|
|
|
|
|
|
<?js members.forEach(function(p) { ?>
|
|
|
<?js= self.partial('members.tmpl', p) ?>
|
|
|
@@ -148,11 +98,22 @@
|
|
|
|
|
|
<?js
|
|
|
var methods = self.find({kind: 'function', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...ignoreInheritedSymbols});
|
|
|
- if (methods && methods.length && methods.forEach) {
|
|
|
+ var staticMethods = methods.filter(function(m) { return m.scope === 'static'; });
|
|
|
+ var instanceMethods = methods.filter(function(m) { return m.scope !== 'static'; });
|
|
|
+
|
|
|
+ if (instanceMethods.length) {
|
|
|
?>
|
|
|
- <h3 class="subsection-title">Methods</h3>
|
|
|
+ <h2 class="subsection-title">Methods</h2>
|
|
|
+
|
|
|
+ <?js instanceMethods.forEach(function(m) { ?>
|
|
|
+ <?js= self.partial('method.tmpl', m) ?>
|
|
|
+ <?js }); ?>
|
|
|
+ <?js } ?>
|
|
|
+
|
|
|
+ <?js if (staticMethods.length) { ?>
|
|
|
+ <h2 class="subsection-title">Static Methods</h2>
|
|
|
|
|
|
- <?js methods.forEach(function(m) { ?>
|
|
|
+ <?js staticMethods.forEach(function(m) { ?>
|
|
|
<?js= self.partial('method.tmpl', m) ?>
|
|
|
<?js }); ?>
|
|
|
<?js } ?>
|
|
|
@@ -161,7 +122,7 @@
|
|
|
var typedefs = self.find({kind: 'typedef', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...ignoreInheritedSymbols});
|
|
|
if (typedefs && typedefs.length && typedefs.forEach) {
|
|
|
?>
|
|
|
- <h3 class="subsection-title">Type Definitions</h3>
|
|
|
+ <h2 class="subsection-title">Type Definitions</h2>
|
|
|
|
|
|
<?js typedefs.forEach(function(e) {
|
|
|
if (e.signature) {
|
|
|
@@ -181,7 +142,7 @@
|
|
|
var events = self.find({kind: 'event', memberof: isGlobalPage ? {isUndefined: true} : doc.longname, ...ignoreInheritedSymbols});
|
|
|
if (events && events.length && events.forEach) {
|
|
|
?>
|
|
|
- <h3 class="subsection-title">Events</h3>
|
|
|
+ <h2 class="subsection-title">Events</h2>
|
|
|
|
|
|
<?js events.forEach(function(e) { ?>
|
|
|
<?js= self.partial('method.tmpl', e) ?>
|
|
|
@@ -189,8 +150,10 @@
|
|
|
<?js } ?>
|
|
|
|
|
|
<?js if (doc.meta && doc.meta.shortpath) { ?>
|
|
|
- <h3 class="subsection-title">Source</h3>
|
|
|
- <a href="https://github.com/mrdoob/three.js/blob/master/<?js= doc.meta.shortpath ?>" target="_blank" rel="noopener"><?js= doc.meta.shortpath ?></a>
|
|
|
+ <h2 class="subsection-title">Source</h2>
|
|
|
+ <p>
|
|
|
+ <a href="https://github.com/mrdoob/three.js/blob/master/<?js= doc.meta.shortpath ?>" target="_blank" rel="noopener"><?js= doc.meta.shortpath ?></a>
|
|
|
+ </p>
|
|
|
<?js } ?>
|
|
|
</article>
|
|
|
|