提交 cb7aaead 编写于 作者: R Rawr

eslint-disable-line no-undef

上级 7ab47df7
......@@ -82,7 +82,7 @@ THREE.TimelinerController.prototype = {
var track = this._tracks[ channelName ],
times = track.times,
index = Timeliner.binarySearch( times, time ),
index = Timeliner.binarySearch( times, time ), // eslint-disable-line no-undef
values = track.values,
stride = track.getValueSize(),
offset = index * stride;
......@@ -120,7 +120,7 @@ THREE.TimelinerController.prototype = {
var track = this._tracks[ channelName ],
times = track.times,
index = Timeliner.binarySearch( times, time );
index = Timeliner.binarySearch( times, time ); // eslint-disable-line no-undef
// we disallow to remove the keyframe when it is the last one we have,
// since the animation system is designed to always produce a defined
......@@ -159,7 +159,7 @@ THREE.TimelinerController.prototype = {
var track = this._tracks[ channelName ],
times = track.times,
index = Timeliner.binarySearch( times, time );
index = Timeliner.binarySearch( times, time ); // eslint-disable-line no-undef
if ( index >= 0 ) {
......
......@@ -13,7 +13,7 @@ THREE.MMDExporter = function () {
if ( u2sTable === undefined ) {
var encoder = new MMDParser.CharsetEncoder();
var encoder = new MMDParser.CharsetEncoder(); // eslint-disable-line no-undef
var table = encoder.s2uTable;
u2sTable = {};
......
......@@ -88,7 +88,7 @@ THREE.ThreeMFLoader.prototype = Object.assign( Object.create( THREE.Loader.proto
try {
zip = new JSZip( data );
zip = new JSZip( data ); // eslint-disable-line no-undef
} catch ( e ) {
......
......@@ -77,7 +77,7 @@ THREE.AMFLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
try {
zip = new JSZip( data );
zip = new JSZip( data ); // eslint-disable-line no-undef
} catch ( e ) {
......
......@@ -1563,7 +1563,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
function ReadBounds( stream, T /*p*/, n ) {
// not sure what to do here, the data isn't really useful.
return stream.Seek( sizeof( T ) * n, aiOrigin_CUR );
return stream.Seek( sizeof( T ) * n, aiOrigin_CUR ); // eslint-disable-line no-undef
}
......@@ -2265,7 +2265,7 @@ THREE.AssimpLoader.prototype = Object.assign( Object.create( THREE.Loader.protot
var compressedData = [];
stream.Read( compressedData, 1, compressedSize );
var uncompressedData = [];
uncompress( uncompressedData, uncompressedSize, compressedData, compressedSize );
uncompress( uncompressedData, uncompressedSize, compressedData, compressedSize ); // eslint-disable-line no-undef
var buff = new ArrayBuffer( uncompressedData );
ReadBinaryScene( buff, pScene );
......
......@@ -435,7 +435,7 @@ THREE.BasisTextureLoader.BasisWorker = function () {
transcoderPending = new Promise( ( resolve ) => {
BasisModule = { wasmBinary, onRuntimeInitialized: resolve };
BASIS( BasisModule );
BASIS( BasisModule ); // eslint-disable-line no-undef
} ).then( () => {
......
......@@ -427,7 +427,7 @@ THREE.DRACOLoader.DRACOWorker = function () {
};
DracoDecoderModule( decoderConfig );
DracoDecoderModule( decoderConfig ); // eslint-disable-line no-undef
} );
break;
......
......@@ -1588,7 +1588,7 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade
case DEFLATE:
var compressed = info.array.slice( inOffset.value, inOffset.value + dwaHeader.totalAcUncompressedCount );
var inflate = new Inflate( compressed, { resize: true, verify: true } );
var inflate = new Inflate( compressed, { resize: true, verify: true } ); // eslint-disable-line no-undef
var acBuffer = new Uint16Array( inflate.decompress().buffer );
inOffset.value += dwaHeader.totalAcUncompressedCount;
break;
......@@ -1615,7 +1615,7 @@ THREE.EXRLoader.prototype = Object.assign( Object.create( THREE.DataTextureLoade
if ( dwaHeader.rleRawSize > 0 ) {
var compressed = info.array.slice( inOffset.value, inOffset.value + dwaHeader.rleCompressedSize );
var inflate = new Inflate( compressed, { resize: true, verify: true } );
var inflate = new Inflate( compressed, { resize: true, verify: true } ); // eslint-disable-line no-undef
var rleBuffer = decodeRunLength( inflate.decompress().buffer );
inOffset.value += dwaHeader.rleCompressedSize;
......
......@@ -80,7 +80,7 @@ THREE.KMZLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
//
var zip = new JSZip( data );
var zip = new JSZip( data ); // eslint-disable-line no-undef
if ( zip.files[ 'doc.kml' ] ) {
......
......@@ -300,7 +300,7 @@ THREE.MMDLoader = ( function () {
}
this.parser = new MMDParser.Parser();
this.parser = new MMDParser.Parser(); // eslint-disable-line no-undef
}
......
......@@ -209,7 +209,7 @@ THREE.TTFLoader.prototype = Object.assign( Object.create( THREE.Loader.prototype
}
return convert( opentype.parse( arraybuffer ), this.reversed );
return convert( opentype.parse( arraybuffer ), this.reversed ); // eslint-disable-line no-undef
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册