Skip to content

Commit d11db8b

Browse files
committed
Add parseAsync to GLTFExporter doc
1 parent 3ea9856 commit d11db8b

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

docs/examples/en/exporters/GLTFExporter.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,19 @@ <h3>[method:undefined parse]( [param:Object3D input], [param:Function onComplete
148148
Generates a .gltf (JSON) or .glb (binary) output from the input (Scenes or Objects)
149149
</p>
150150

151+
<h3>[method:Promise parseAsync]( [param:Object3D input], [param:Object options] )</h3>
152+
153+
<p>
154+
Generates a .gltf (JSON) or .glb (binary) output from the input (Scenes or Objects).
155+
</p>
156+
<p>
157+
This is just like the [page:.parse]() method, but instead of
158+
accepting callbacks it returns a promise that resolves with the
159+
result, and otherwise accepts the same options. Use try-catch around
160+
the promise, or <code inline>promise.catch()</code>, to
161+
catch errors.
162+
</p>
163+
151164
<h2>Source</h2>
152165

153166
<p>

docs/page.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ ul code {
152152
margin: 16px 0;
153153
}
154154

155-
code.inline {
155+
code.inline, code[inline] {
156156
display: inline-block;
157157
vertical-align: middle;
158158
border-radius: 4px;
@@ -186,7 +186,7 @@ table td:first-child {
186186
padding-left: 0;
187187
}
188188

189-
code:not(.inline) {
189+
code:not(.inline, [inline]) {
190190
display: block;
191191
padding: calc(var(--page-padding) - 6px) var(--page-padding);
192192
white-space: pre-wrap;

0 commit comments

Comments
 (0)