@vrspace/babylonjs
Version:
vrspace.org babylonjs client
29 lines (28 loc) • 824 B
TypeScript
/**
Script loader
*/
export class ScriptLoader {
static instance: any;
static getInstance(contentBase: any): any;
constructor(contentBase: any);
scripts: {};
contentBase: any;
/**
Add a script to load path
@param script url to load the script from
*/
add(script: any): this;
/**
Load all scripts
@param parallel default false - wait for each one to load before loading the next one
*/
load(parallel?: boolean): Promise<void>;
loadScript(path: any, parallel: any): Promise<any>;
/**
Utility method - load a script and append it to document head
@param urls array containing URLs of scripts
@param parallel optionally load in parallel
*/
loadScriptsToDocument(urls: any, parallel: any): Promise<void>;
addScript(url: any): void;
}