Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Sep 20, 2022
1 parent 02218f0 commit 9a38518
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cahvore-utilities/CahvoreDistortionMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export class CahvoreDistortionMaterial extends ShaderMaterial {
this.needsUpdate = true;

}

this.uniforms[ 'map' ].value = v;

},
Expand Down Expand Up @@ -123,6 +124,7 @@ export class CahvoreDistortionMaterial extends ShaderMaterial {
this.needsUpdate = true;

}

defines.MODEL_TYPE = modelType;

}
Expand Down
1 change: 1 addition & 0 deletions src/cahvore-utilities/cahvore.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ function cmod_cahvore_2d_to_3d_general( pos2, linearity, c, a, h, v, o, r, e, po
ri.addVectors( u3, v3 );

}

pos3.copy( cp );
uvec3.copy( ri );

Expand Down
1 change: 1 addition & 0 deletions src/pds-loader/src/PDSLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class PDSLoader {
throw new Error( `PDSLoader: Failed to load file "${url}" with status ${res.status} : ${res.statusText}` );

}

return res.arrayBuffer();

} )
Expand Down
3 changes: 3 additions & 0 deletions src/pds-loader/src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function parseValue( val, name ) {
);

}

return val;

} else {
Expand Down Expand Up @@ -103,6 +104,7 @@ function processLabelGroup( tokens, target, offset = 0, endGroupName = null ) {
console.warn( `PDSLoader: Found group with duplicate name "${val}".` );

}

target.push( { isLabelGroup: true, name: val, value: groupLabels } );
break;

Expand Down Expand Up @@ -177,6 +179,7 @@ function parseLabels( string ) {
}

}

tokens.push( name.trim(), value.trim() );

} else {
Expand Down
1 change: 1 addition & 0 deletions src/pds-loader/test/PDSLoader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function stringToBuffer( str ) {
byteBuffer[ i ] = str.charCodeAt( i );

}

return byteBuffer.buffer;

}
Expand Down
1 change: 1 addition & 0 deletions src/pgm-loader/PGMLoaderBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class PGMLoaderBase {
throw new Error( `PGMLoader: Failed to load file "${url}" with status ${res.status} : ${res.statusText}` );

}

return res.arrayBuffer();

} )
Expand Down
2 changes: 2 additions & 0 deletions src/sgi-loader/SGILoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,13 @@ export class SGILoader extends SGILoaderBase {
break;

}

case 4:
texture.format = RGBAFormat;
break;

}

texture.needsUpdate = true;

return texture;
Expand Down
2 changes: 2 additions & 0 deletions src/sgi-loader/SGILoaderBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function readUpTo( dataView, offset = 0, maxLength = Infinity ) {
currOffset ++;

}

return str;

}
Expand Down Expand Up @@ -83,6 +84,7 @@ export class SGILoaderBase {
throw new Error( `SGILoader: Failed to load file "${url}" with status ${res.status} : ${res.statusText}` );

}

return res.arrayBuffer();

} )
Expand Down
5 changes: 5 additions & 0 deletions src/vicar-loader/src/base/VicarLoaderBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class VicarLoaderBase {
throw new Error( `VicarLoader: Failed to load file "${url}" with status ${res.status} : ${res.statusText}` );

}

return res.arrayBuffer();

} )
Expand All @@ -91,6 +92,7 @@ export class VicarLoaderBase {
byteBuffer = new Uint8Array( buffer );

}

const lblsizeStr = readUntil( byteBuffer, 0, c => /\s/.test( c ) );
const labelSize = parseInt( lblsizeStr.split( '=' )[ 1 ] );

Expand Down Expand Up @@ -214,6 +216,7 @@ export class VicarLoaderBase {
throw new Error( 'VicarLoader: VAX REALFMT not supported.' );

}

break;
case 'DOUB':
cons = Float64Array;
Expand All @@ -224,6 +227,7 @@ export class VicarLoaderBase {
throw new Error( 'VicarLoader: VAX REALFMT not supported.' );

}

break;
case 'COMPLEX':
case 'COMP':
Expand All @@ -236,6 +240,7 @@ export class VicarLoaderBase {
throw new Error( 'VicarLoader: VAX REALFMT not supported.' );

}

break;

}
Expand Down
5 changes: 5 additions & 0 deletions src/vicar-loader/src/base/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function consumeArray( string, i ) {
}

}

return { token, index: i };

}
Expand All @@ -95,6 +96,7 @@ function parseLabels( string ) {
tokens.push( lastToken );

}

lastToken = '';

} else if ( c === '\'' ) {
Expand Down Expand Up @@ -150,9 +152,11 @@ function readString( buffer, from, to ) {
break;

}

str += value;

}

return str;

}
Expand All @@ -176,6 +180,7 @@ function readUntil( buffer, from, cb ) {
}

}

return str;

}
Expand Down
1 change: 1 addition & 0 deletions src/vicar-loader/test/VicarLoader.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ function createFile( labels, labelSize, contentSize ) {
byteBuffer[ i ] = trimmedLabels.charCodeAt( i );

}

return byteBuffer.buffer;

}
Expand Down

0 comments on commit 9a38518

Please sign in to comment.