Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
frenchtoast747 committed Nov 1, 2019
1 parent dc5f9ad commit d5eada3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/layout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 4 additions & 2 deletions src/mesh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,10 @@ export default class Mesh {
return buffer;
}

makeIndexBufferDataForMaterials(...materialIndices : Array<number>): Uint16ArrayWithItemSize {
const indices : number[] = new Array<number>().concat(...materialIndices.map((mtlIdx) => this.indicesPerMaterial[mtlIdx]));
makeIndexBufferDataForMaterials(...materialIndices: Array<number>): Uint16ArrayWithItemSize {
const indices: number[] = new Array<number>().concat(
...materialIndices.map(mtlIdx => this.indicesPerMaterial[mtlIdx]),
);
const buffer: Uint16ArrayWithItemSize = new Uint16Array(indices);
buffer.numItems = indices.length;
return buffer;
Expand Down

0 comments on commit d5eada3

Please sign in to comment.