diff --git a/src/layout.ts b/src/layout.ts index 484f98f..1847201 100644 --- a/src/layout.ts +++ b/src/layout.ts @@ -63,7 +63,7 @@ export class Attribute { * For type "FLOAT", this parameter has no effect. */ constructor(public key: string, public size: number, public type: TYPES, public normalized: boolean = false) { - switch(type) { + switch (type) { case "BYTE": case "UNSIGNED_BYTE": this.sizeOfType = 1; diff --git a/src/mesh.ts b/src/mesh.ts index a5f9d55..0d2eefa 100644 --- a/src/mesh.ts +++ b/src/mesh.ts @@ -738,8 +738,10 @@ export default class Mesh { return buffer; } - makeIndexBufferDataForMaterials(...materialIndices : Array): Uint16ArrayWithItemSize { - const indices : number[] = new Array().concat(...materialIndices.map((mtlIdx) => this.indicesPerMaterial[mtlIdx])); + makeIndexBufferDataForMaterials(...materialIndices: Array): Uint16ArrayWithItemSize { + const indices: number[] = new Array().concat( + ...materialIndices.map(mtlIdx => this.indicesPerMaterial[mtlIdx]), + ); const buffer: Uint16ArrayWithItemSize = new Uint16Array(indices); buffer.numItems = indices.length; return buffer;