Skip to content

Commit 7973773

Browse files
authored
Merge pull request #20146 from Mugen87/dev45
Example: Update modules.
2 parents 6bc97a8 + 28f500f commit 7973773

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

examples/jsm/animation/TimelinerController.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ TimelinerController.prototype = {
8787

8888
var track = this._tracks[ channelName ],
8989
times = track.times,
90-
index = Timeliner.binarySearch( times, time ),
90+
index = Timeliner.binarySearch( times, time ), // eslint-disable-line no-undef
9191
values = track.values,
9292
stride = track.getValueSize(),
9393
offset = index * stride;
@@ -125,7 +125,7 @@ TimelinerController.prototype = {
125125

126126
var track = this._tracks[ channelName ],
127127
times = track.times,
128-
index = Timeliner.binarySearch( times, time );
128+
index = Timeliner.binarySearch( times, time ); // eslint-disable-line no-undef
129129

130130
// we disallow to remove the keyframe when it is the last one we have,
131131
// since the animation system is designed to always produce a defined
@@ -164,7 +164,7 @@ TimelinerController.prototype = {
164164

165165
var track = this._tracks[ channelName ],
166166
times = track.times,
167-
index = Timeliner.binarySearch( times, time );
167+
index = Timeliner.binarySearch( times, time ); // eslint-disable-line no-undef
168168

169169
if ( index >= 0 ) {
170170

examples/jsm/exporters/MMDExporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var MMDExporter = function () {
1818

1919
if ( u2sTable === undefined ) {
2020

21-
var encoder = new MMDParser.CharsetEncoder();
21+
var encoder = new MMDParser.CharsetEncoder(); // eslint-disable-line no-undef
2222
var table = encoder.s2uTable;
2323
u2sTable = {};
2424

examples/jsm/loaders/3MFLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ ThreeMFLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
110110

111111
try {
112112

113-
zip = new JSZip( data );
113+
zip = new JSZip( data ); // eslint-disable-line no-undef
114114

115115
} catch ( e ) {
116116

examples/jsm/loaders/AMFLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ AMFLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
8888

8989
try {
9090

91-
zip = new JSZip( data );
91+
zip = new JSZip( data ); // eslint-disable-line no-undef
9292

9393
} catch ( e ) {
9494

examples/jsm/loaders/AssimpLoader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,7 +1581,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
15811581
function ReadBounds( stream, T /*p*/, n ) {
15821582

15831583
// not sure what to do here, the data isn't really useful.
1584-
return stream.Seek( sizeof( T ) * n, aiOrigin_CUR );
1584+
return stream.Seek( sizeof( T ) * n, aiOrigin_CUR ); // eslint-disable-line no-undef
15851585

15861586
}
15871587

@@ -2283,7 +2283,7 @@ AssimpLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
22832283
var compressedData = [];
22842284
stream.Read( compressedData, 1, compressedSize );
22852285
var uncompressedData = [];
2286-
uncompress( uncompressedData, uncompressedSize, compressedData, compressedSize );
2286+
uncompress( uncompressedData, uncompressedSize, compressedData, compressedSize ); // eslint-disable-line no-undef
22872287
var buff = new ArrayBuffer( uncompressedData );
22882288
ReadBinaryScene( buff, pScene );
22892289

examples/jsm/loaders/BasisTextureLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ BasisTextureLoader.BasisWorker = function () {
447447
transcoderPending = new Promise( ( resolve ) => {
448448

449449
BasisModule = { wasmBinary, onRuntimeInitialized: resolve };
450-
BASIS( BasisModule );
450+
BASIS( BasisModule ); // eslint-disable-line no-undef
451451

452452
} ).then( () => {
453453

examples/jsm/loaders/DRACOLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ DRACOLoader.DRACOWorker = function () {
432432

433433
};
434434

435-
DracoDecoderModule( decoderConfig );
435+
DracoDecoderModule( decoderConfig ); // eslint-disable-line no-undef
436436

437437
} );
438438
break;

examples/jsm/loaders/EXRLoader.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -951,15 +951,15 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
951951

952952
for ( let comp = 0; comp < numComp; ++ comp ) {
953953

954-
let type = channelData[ cscSet.idx[ comp ] ].type;
954+
const type = channelData[ cscSet.idx[ comp ] ].type;
955955

956956
for ( let y = 8 * blocky; y < 8 * blocky + maxY; ++ y ) {
957957

958958
offset = rowOffsets[ comp ][ y ];
959959

960960
for ( let blockx = 0; blockx < numFullBlocksX; ++ blockx ) {
961961

962-
let src = blockx * 64 + ( ( y & 0x7 ) * 8 );
962+
const src = blockx * 64 + ( ( y & 0x7 ) * 8 );
963963

964964
dataView.setUint16( offset + 0 * INT16_SIZE * type, rowBlock[ comp ][ src + 0 ], true );
965965
dataView.setUint16( offset + 1 * INT16_SIZE * type, rowBlock[ comp ][ src + 1 ], true );
@@ -982,8 +982,8 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
982982

983983
for ( let y = 8 * blocky; y < 8 * blocky + maxY; ++ y ) {
984984

985-
let offset = rowOffsets[ comp ][ y ] + 8 * numFullBlocksX * INT16_SIZE * type;
986-
let src = numFullBlocksX * 64 + ( ( y & 0x7 ) * 8 );
985+
const offset = rowOffsets[ comp ][ y ] + 8 * numFullBlocksX * INT16_SIZE * type;
986+
const src = numFullBlocksX * 64 + ( ( y & 0x7 ) * 8 );
987987

988988
for ( let x = 0; x < maxX; ++ x ) {
989989

@@ -1012,7 +1012,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
10121012

10131013
for ( var y = 0; y < height; ++ y ) {
10141014

1015-
let offset = rowOffsets[ comp ][ y ];
1015+
const offset = rowOffsets[ comp ][ y ];
10161016

10171017
for ( var x = 0; x < width; ++ x ) {
10181018

@@ -1429,7 +1429,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
14291429

14301430
let tmpBufferEnd = 0;
14311431
let writePtr = 0;
1432-
let ptr = new Array( 4 );
1432+
const ptr = new Array( 4 );
14331433

14341434
for ( let y = 0; y < info.lines; y ++ ) {
14351435

@@ -1601,7 +1601,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
16011601
case DEFLATE:
16021602

16031603
var compressed = info.array.slice( inOffset.value, inOffset.value + dwaHeader.totalAcUncompressedCount );
1604-
var inflate = new Inflate( compressed, { resize: true, verify: true } );
1604+
var inflate = new Inflate( compressed, { resize: true, verify: true } ); // eslint-disable-line no-undef
16051605
var acBuffer = new Uint16Array( inflate.decompress().buffer );
16061606
inOffset.value += dwaHeader.totalAcUncompressedCount;
16071607
break;
@@ -1628,7 +1628,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
16281628
if ( dwaHeader.rleRawSize > 0 ) {
16291629

16301630
var compressed = info.array.slice( inOffset.value, inOffset.value + dwaHeader.rleCompressedSize );
1631-
var inflate = new Inflate( compressed, { resize: true, verify: true } );
1631+
var inflate = new Inflate( compressed, { resize: true, verify: true } ); // eslint-disable-line no-undef
16321632
var rleBuffer = decodeRunLength( inflate.decompress().buffer );
16331633

16341634
inOffset.value += dwaHeader.rleCompressedSize;
@@ -2405,7 +2405,7 @@ EXRLoader.prototype = Object.assign( Object.create( DataTextureLoader.prototype
24052405

24062406
}
24072407

2408-
let format = ( this.type === UnsignedByteType ) ? RGBEFormat : ( numChannels === 4 ) ? RGBAFormat : RGBFormat;
2408+
const format = ( this.type === UnsignedByteType ) ? RGBEFormat : ( numChannels === 4 ) ? RGBAFormat : RGBFormat;
24092409

24102410
return {
24112411
header: EXRHeader,

examples/jsm/loaders/KMZLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ KMZLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
8787

8888
//
8989

90-
var zip = new JSZip( data );
90+
var zip = new JSZip( data ); // eslint-disable-line no-undef
9191

9292
if ( zip.files[ 'doc.kml' ] ) {
9393

examples/jsm/loaders/MMDLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ var MMDLoader = ( function () {
333333

334334
}
335335

336-
this.parser = new MMDParser.Parser();
336+
this.parser = new MMDParser.Parser(); // eslint-disable-line no-undef
337337

338338
}
339339

0 commit comments

Comments
 (0)