@@ -381,8 +381,8 @@ const GLB_CHUNK_TYPE_BIN = 0x004E4942;
381
381
* Compare two arrays
382
382
*
383
383
* @private
384
- * @param {Array } array1 Array 1 to compare
385
- * @param {Array } array2 Array 2 to compare
384
+ * @param {Array } array1 Array 1 to compare
385
+ * @param {Array } array2 Array 2 to compare
386
386
* @return {boolean } Returns true if both arrays are equal
387
387
*/
388
388
function equalArray ( array1 , array2 ) {
@@ -399,7 +399,7 @@ function equalArray( array1, array2 ) {
399
399
* Converts a string to an ArrayBuffer.
400
400
*
401
401
* @private
402
- * @param {string } text
402
+ * @param {string } text
403
403
* @return {ArrayBuffer }
404
404
*/
405
405
function stringToArrayBuffer ( text ) {
@@ -425,9 +425,9 @@ function isIdentityMatrix( matrix ) {
425
425
* Get the min and max vectors from the given attribute
426
426
*
427
427
* @private
428
- * @param {BufferAttribute } attribute Attribute to find the min/max in range from start to start + count
429
- * @param {number } start Start index
430
- * @param {number } count Range to cover
428
+ * @param {BufferAttribute } attribute Attribute to find the min/max in range from start to start + count
429
+ * @param {number } start Start index
430
+ * @param {number } count Range to cover
431
431
* @return {Object } Object containing the `min` and `max` values (As an array of attribute.itemSize components)
432
432
*/
433
433
function getMinMax ( attribute , start , count ) {
@@ -798,7 +798,7 @@ class GLTFWriter {
798
798
/**
799
799
* Returns ids for buffer attributes.
800
800
*
801
- * @param {Object } attribute
801
+ * @param {Object } attribute
802
802
* @param {boolean } [isRelativeCopy=false]
803
803
* @return {number } An integer
804
804
*/
@@ -1053,7 +1053,7 @@ class GLTFWriter {
1053
1053
1054
1054
/**
1055
1055
* Process a buffer to append to the default one.
1056
- * @param {ArrayBuffer } buffer
1056
+ * @param {ArrayBuffer } buffer
1057
1057
* @return {0 }
1058
1058
*/
1059
1059
processBuffer ( buffer ) {
@@ -1362,10 +1362,10 @@ class GLTFWriter {
1362
1362
1363
1363
/**
1364
1364
* Process image
1365
- * @param {Image } image to process
1366
- * @param {number } format Identifier of the format (RGBAFormat)
1367
- * @param {boolean } flipY before writing out the image
1368
- * @param {string } mimeType export format
1365
+ * @param {Image } image to process
1366
+ * @param {number } format Identifier of the format (RGBAFormat)
1367
+ * @param {boolean } flipY before writing out the image
1368
+ * @param {string } mimeType export format
1369
1369
* @return {number } Index of the processed texture in the "images" array
1370
1370
*/
1371
1371
processImage ( image , format , flipY , mimeType = 'image/png' ) {
@@ -1484,7 +1484,7 @@ class GLTFWriter {
1484
1484
1485
1485
/**
1486
1486
* Process sampler
1487
- * @param {Texture } map Texture to process
1487
+ * @param {Texture } map Texture to process
1488
1488
* @return {number } Index of the processed texture in the "samplers" array
1489
1489
*/
1490
1490
processSampler ( map ) {
@@ -1506,7 +1506,7 @@ class GLTFWriter {
1506
1506
1507
1507
/**
1508
1508
* Process texture
1509
- * @param {Texture } map Map to process
1509
+ * @param {Texture } map Map to process
1510
1510
* @return {Promise<number> } Index of the processed texture in the "textures" array
1511
1511
*/
1512
1512
async processTextureAsync ( map ) {
@@ -1552,7 +1552,7 @@ class GLTFWriter {
1552
1552
1553
1553
/**
1554
1554
* Process material
1555
- * @param {THREE.Material } material Material to process
1555
+ * @param {THREE.Material } material Material to process
1556
1556
* @return {Promise<number|null> } Index of the processed material in the "materials" array
1557
1557
*/
1558
1558
async processMaterialAsync ( material ) {
@@ -1728,7 +1728,7 @@ class GLTFWriter {
1728
1728
1729
1729
/**
1730
1730
* Process mesh
1731
- * @param {THREE.Mesh } mesh Mesh to process
1731
+ * @param {THREE.Mesh } mesh Mesh to process
1732
1732
* @return {Promise<number|null> } Index of the processed mesh in the "meshes" array
1733
1733
*/
1734
1734
async processMeshAsync ( mesh ) {
@@ -2133,7 +2133,7 @@ class GLTFWriter {
2133
2133
2134
2134
/**
2135
2135
* Process camera
2136
- * @param {THREE.Camera } camera Camera to process
2136
+ * @param {THREE.Camera } camera Camera to process
2137
2137
* @return {number } Index of the processed mesh in the "camera" array
2138
2138
*/
2139
2139
processCamera ( camera ) {
@@ -2334,7 +2334,7 @@ class GLTFWriter {
2334
2334
2335
2335
/**
2336
2336
* Process Object3D node
2337
- * @param {THREE.Object3D } object Object3D to processNodeAsync
2337
+ * @param {THREE.Object3D } object Object3D to processNodeAsync
2338
2338
* @return {Promise<number> } Index of the node in the nodes list
2339
2339
*/
2340
2340
async processNodeAsync ( object ) {
@@ -2442,7 +2442,7 @@ class GLTFWriter {
2442
2442
2443
2443
/**
2444
2444
* Process Scene
2445
- * @param {Scene } scene Scene to process
2445
+ * @param {Scene } scene Scene to process
2446
2446
*/
2447
2447
async processSceneAsync ( scene ) {
2448
2448
@@ -2486,7 +2486,7 @@ class GLTFWriter {
2486
2486
2487
2487
/**
2488
2488
* Creates a Scene to hold a list of objects and parse it
2489
- * @param {Array<THREE.Object3D> } objects List of objects to process
2489
+ * @param {Array<THREE.Object3D> } objects List of objects to process
2490
2490
*/
2491
2491
async processObjectsAsync ( objects ) {
2492
2492
0 commit comments