Archived
Private
Public Access
1
0

Initial commit

This commit is contained in:
2022-09-04 12:45:01 +02:00
commit f4a01d6a69
11601 changed files with 4206660 additions and 0 deletions

70
HTML/ThreeJS/node_modules/three/src/loaders/Loader.js generated vendored Normal file
View File

@@ -0,0 +1,70 @@
import { DefaultLoadingManager } from './LoadingManager.js';
class Loader {
constructor( manager ) {
this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
this.crossOrigin = 'anonymous';
this.withCredentials = false;
this.path = '';
this.resourcePath = '';
this.requestHeader = {};
}
load( /* url, onLoad, onProgress, onError */ ) {}
loadAsync( url, onProgress ) {
const scope = this;
return new Promise( function ( resolve, reject ) {
scope.load( url, resolve, onProgress, reject );
} );
}
parse( /* data */ ) {}
setCrossOrigin( crossOrigin ) {
this.crossOrigin = crossOrigin;
return this;
}
setWithCredentials( value ) {
this.withCredentials = value;
return this;
}
setPath( path ) {
this.path = path;
return this;
}
setResourcePath( resourcePath ) {
this.resourcePath = resourcePath;
return this;
}
setRequestHeader( requestHeader ) {
this.requestHeader = requestHeader;
return this;
}
}
export { Loader };