Skip to content

Commit cc5d6dc

Browse files
authored
Merge pull request #21820 from donmccurdy/cleanup-gltfloader-jsdoc
GLTFLoader: Clean up JSDoc.
2 parents 9365eaf + d262873 commit cc5d6dc

File tree

1 file changed

+64
-65
lines changed

1 file changed

+64
-65
lines changed

examples/jsm/loaders/GLTFLoader.js

Lines changed: 64 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@ const EXTENSIONS = {
418418
};
419419

420420
/**
421-
* Punctual Lights Extension
422-
*
423-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_lights_punctual
424-
*/
421+
* Punctual Lights Extension
422+
*
423+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_lights_punctual
424+
*/
425425
class GLTFLightsExtension {
426426

427427
constructor( parser ) {
@@ -546,10 +546,10 @@ class GLTFLightsExtension {
546546
}
547547

548548
/**
549-
* Unlit Materials Extension
550-
*
551-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit
552-
*/
549+
* Unlit Materials Extension
550+
*
551+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit
552+
*/
553553
class GLTFMaterialsUnlitExtension {
554554

555555
constructor() {
@@ -599,10 +599,10 @@ class GLTFMaterialsUnlitExtension {
599599
}
600600

601601
/**
602-
* Clearcoat Materials Extension
603-
*
604-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_clearcoat
605-
*/
602+
* Clearcoat Materials Extension
603+
*
604+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_clearcoat
605+
*/
606606
class GLTFMaterialsClearcoatExtension {
607607

608608
constructor( parser ) {
@@ -684,11 +684,11 @@ class GLTFMaterialsClearcoatExtension {
684684
}
685685

686686
/**
687-
* Transmission Materials Extension
688-
*
689-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission
690-
* Draft: https://github.com/KhronosGroup/glTF/pull/1698
691-
*/
687+
* Transmission Materials Extension
688+
*
689+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission
690+
* Draft: https://github.com/KhronosGroup/glTF/pull/1698
691+
*/
692692
class GLTFMaterialsTransmissionExtension {
693693

694694
constructor( parser ) {
@@ -743,10 +743,10 @@ class GLTFMaterialsTransmissionExtension {
743743
}
744744

745745
/**
746-
* BasisU Texture Extension
747-
*
748-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu
749-
*/
746+
* BasisU Texture Extension
747+
*
748+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu
749+
*/
750750
class GLTFTextureBasisUExtension {
751751

752752
constructor( parser ) {
@@ -795,10 +795,10 @@ class GLTFTextureBasisUExtension {
795795
}
796796

797797
/**
798-
* WebP Texture Extension
799-
*
800-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_webp
801-
*/
798+
* WebP Texture Extension
799+
*
800+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_webp
801+
*/
802802
class GLTFTextureWebPExtension {
803803

804804
constructor( parser ) {
@@ -880,10 +880,10 @@ class GLTFTextureWebPExtension {
880880
}
881881

882882
/**
883-
* meshopt BufferView Compression Extension
884-
*
885-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_meshopt_compression
886-
*/
883+
* meshopt BufferView Compression Extension
884+
*
885+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_meshopt_compression
886+
*/
887887
class GLTFMeshoptCompression {
888888

889889
constructor( parser ) {
@@ -1018,10 +1018,10 @@ class GLTFBinaryExtension {
10181018
}
10191019

10201020
/**
1021-
* DRACO Mesh Compression Extension
1022-
*
1023-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression
1024-
*/
1021+
* DRACO Mesh Compression Extension
1022+
*
1023+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression
1024+
*/
10251025
class GLTFDracoMeshCompressionExtension {
10261026

10271027
constructor( json, dracoLoader ) {
@@ -1101,10 +1101,10 @@ class GLTFDracoMeshCompressionExtension {
11011101
}
11021102

11031103
/**
1104-
* Texture Transform Extension
1105-
*
1106-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform
1107-
*/
1104+
* Texture Transform Extension
1105+
*
1106+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform
1107+
*/
11081108
class GLTFTextureTransformExtension {
11091109

11101110
constructor() {
@@ -1150,17 +1150,16 @@ class GLTFTextureTransformExtension {
11501150
}
11511151

11521152
/**
1153-
* Specular-Glossiness Extension
1154-
*
1155-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_pbrSpecularGlossiness
1156-
*/
1153+
* Specular-Glossiness Extension
1154+
*
1155+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_pbrSpecularGlossiness
1156+
*/
11571157

11581158
/**
1159-
* A sub class of StandardMaterial with some of the functionality
1160-
* changed via the `onBeforeCompile` callback
1161-
* @pailhead
1162-
*/
1163-
1159+
* A sub class of StandardMaterial with some of the functionality
1160+
* changed via the `onBeforeCompile` callback
1161+
* @pailhead
1162+
*/
11641163
class GLTFMeshStandardSGMaterial extends MeshStandardMaterial {
11651164

11661165
constructor( params ) {
@@ -1484,10 +1483,10 @@ class GLTFMaterialsPbrSpecularGlossinessExtension {
14841483
}
14851484

14861485
/**
1487-
* Mesh Quantization Extension
1488-
*
1489-
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization
1490-
*/
1486+
* Mesh Quantization Extension
1487+
*
1488+
* Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization
1489+
*/
14911490
class GLTFMeshQuantizationExtension {
14921491

14931492
constructor() {
@@ -1700,8 +1699,8 @@ function resolveURL( url, path ) {
17001699
}
17011700

17021701
/**
1703-
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material
1704-
*/
1702+
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material
1703+
*/
17051704
function createDefaultMaterial( cache ) {
17061705

17071706
if ( cache[ 'DefaultMaterial' ] === undefined ) {
@@ -1740,9 +1739,9 @@ function addUnknownExtensionsToUserData( knownExtensions, object, objectDef ) {
17401739
}
17411740

17421741
/**
1743-
* @param {Object3D|Material|BufferGeometry} object
1744-
* @param {GLTF.definition} gltfDef
1745-
*/
1742+
* @param {Object3D|Material|BufferGeometry} object
1743+
* @param {GLTF.definition} gltfDef
1744+
*/
17461745
function assignExtrasToUserData( object, gltfDef ) {
17471746

17481747
if ( gltfDef.extras !== undefined ) {
@@ -1762,13 +1761,13 @@ function assignExtrasToUserData( object, gltfDef ) {
17621761
}
17631762

17641763
/**
1765-
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets
1766-
*
1767-
* @param {BufferGeometry} geometry
1768-
* @param {Array<GLTF.Target>} targets
1769-
* @param {GLTFParser} parser
1770-
* @return {Promise<BufferGeometry>}
1771-
*/
1764+
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets
1765+
*
1766+
* @param {BufferGeometry} geometry
1767+
* @param {Array<GLTF.Target>} targets
1768+
* @param {GLTFParser} parser
1769+
* @return {Promise<BufferGeometry>}
1770+
*/
17721771
function addMorphTargets( geometry, targets, parser ) {
17731772

17741773
let hasMorphPosition = false;
@@ -1835,9 +1834,9 @@ function addMorphTargets( geometry, targets, parser ) {
18351834
}
18361835

18371836
/**
1838-
* @param {Mesh} mesh
1839-
* @param {GLTF.Mesh} meshDef
1840-
*/
1837+
* @param {Mesh} mesh
1838+
* @param {GLTF.Mesh} meshDef
1839+
*/
18411840
function updateMorphTargets( mesh, meshDef ) {
18421841

18431842
mesh.updateMorphTargets();

0 commit comments

Comments
 (0)