Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Fix return value type of BufferAttribute.onUpload #20890

Merged
merged 2 commits into from
Dec 17, 2020
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/api/en/core/BufferAttribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ <h3>[method:Number getZ]( [param:Integer index] ) </h3>
<h3>[method:Number getW]( [param:Integer index] ) </h3>
<p>Returns the w component of the vector at the given index.</p>

<h3>[method:null onUpload]( [param:Function callback] ) </h3>
<h3>[method:this onUpload]( [param:Function callback] ) </h3>
<p>
Sets the value of the onUploadCallback property.<br /><br />

Expand Down
4 changes: 2 additions & 2 deletions docs/api/zh/core/BufferAttribute.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h3>[method:BufferAttribute copyArray]( array ) </h3>
拷贝 TypedArray 相关注意事项详见 [link:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set TypedArray.set]。
</p>

<h3>[method:null copyAt] ( [param:Integer index1], [param:BufferAttribute bufferAttribute], [param:Integer index2] ) </h3>
<h3>[method:this copyAt] ( [param:Integer index1], [param:BufferAttribute bufferAttribute], [param:Integer index2] ) </h3>
<p>将一个矢量从 bufferAttribute[index2] 拷贝到 [page:BufferAttribute.array array][index1] 中。</p>

<h3>[method:BufferAttribute copyColorsArray]( [param:Array colors] ) </h3>
Expand All @@ -143,7 +143,7 @@ <h3>[method:Number getZ]( [param:Integer index] ) </h3>
<h3>[method:Number getW]( [param:Integer index] ) </h3>
<p>获取给定索引的矢量的第四维元素 (即 W 值)。</p>

<h3>[method:null onUpload]( [param:Function callback] ) </h3>
<h3>[method:this onUpload]( [param:Function callback] ) </h3>
<p>见 onUploadCallback 属性。<br /><br />
在 [example:webgl_buffergeometry WebGL / Buffergeometry] 中,该方在缓存数据传递给 GPU 后,用于释放内存。
</p>
Expand Down