Skip to content

Commit

Permalink
Merge pull request CesiumGS#597 from CesiumGS/fix-doc
Browse files Browse the repository at this point in the history
Fix doc for glbToGltf, gltfToGlb, processGlb, processGltf
  • Loading branch information
IanLilleyT authored Aug 1, 2021
2 parents 0cfa5dd + 7ba8797 commit 829cc3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/glbToGltf.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = glbToGltf;
*
* @param {Buffer} glb A buffer containing the glb contents.
* @param {Object} [options] The same options object as {@link processGltf}
* @returns {Promise} A promise that resolves to an object containing a glTF asset.
* @returns {Promise} A promise that resolves to an object containing the glTF and a dictionary containing separate resources.
*/
function glbToGltf(glb, options) {
const gltf = parseGlb(glb);
Expand Down
2 changes: 1 addition & 1 deletion lib/gltfToGlb.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = gltfToGlb;
*
* @param {Object} gltf A javascript object containing a glTF asset.
* @param {Object} [options] The same options object as {@link processGltf}
* @returns {Promise} A promise that resolves to a buffer containing the glb contents.
* @returns {Promise} A promise that resolves to an object containing the glb and a dictionary containing separate resources.
*/
function gltfToGlb(gltf, options) {
options = defined(options) ? clone(options) : {};
Expand Down
2 changes: 1 addition & 1 deletion lib/processGlb.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = processGlb;
*
* @param {Buffer} glb A buffer containing the glb contents.
* @param {Object} [options] The same options object as {@link processGltf}
* @returns {Promise} A promise that resolves to a buffer containing the glb contents.
* @returns {Promise} A promise that resolves to an object containing the glb and a dictionary containing separate resources.
*/
function processGlb(glb, options) {
const gltf = parseGlb(glb);
Expand Down
2 changes: 1 addition & 1 deletion lib/processGltf.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ module.exports = processGltf;
* @param {Stage[]} [options.customStages] Custom stages to run on the glTF asset.
* @param {Logger} [options.logger] A callback function for handling logged messages. Defaults to console.log.
*
* @returns {Promise} A promise that resolves to the processed glTF and a dictionary containing separate resources.
* @returns {Promise} A promise that resolves to an object containing the glTF and a dictionary containing separate resources.
*/
function processGltf(gltf, options) {
const defaults = processGltf.defaults;
Expand Down

0 comments on commit 829cc3d

Please sign in to comment.