From d5eada365b5a5c57148593a6a4b0b54adb67acd7 Mon Sep 17 00:00:00 2001 From: Aaron Boman Date: Fri, 1 Nov 2019 10:11:21 -0500 Subject: [PATCH] Run prettier --- src/layout.ts | 2 +- src/mesh.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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;