[three] CubeTextureLoader: Fixed crossOrigin typo and made types more precise (#24848)

* Updated CubeTextureLoader types

* Feedback: keep `urls` as plain array
This commit is contained in:
Tiger Oakes
2018-04-09 13:26:18 -07:00
committed by Mohamed Hegazy
parent 8070848da5
commit 6c5c0a8898
2 changed files with 5 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for three.js 0.91
// Project: https://threejs.org
// Definitions by: Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>, Ivo <https://github.com/ivoisbelongtous>, David Asmuth <https://github.com/piranha771>, Brandon Roberge, Qinsi ZHU <https://github.com/qszhusightp>, Toshiya Nakakura <https://github.com/nakakura>, Poul Kjeldager Sørensen <https://github.com/s093294>, Stefan Profanter <https://github.com/Pro>, Edmund Fokschaner <https://github.com/efokschaner>, Roelof Jooste <https://github.com/PsychoSTS>, Daniel Hritzkiv <https://github.com/dhritzkiv>, Apurva Ojas <https://github.com/apurvaojas>
// Definitions by: Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>, HouChunlei <https://github.com/omni360>, Ivo <https://github.com/ivoisbelongtous>, David Asmuth <https://github.com/piranha771>, Brandon Roberge, Qinsi ZHU <https://github.com/qszhusightp>, Toshiya Nakakura <https://github.com/nakakura>, Poul Kjeldager Sørensen <https://github.com/s093294>, Stefan Profanter <https://github.com/Pro>, Edmund Fokschaner <https://github.com/efokschaner>, Roelof Jooste <https://github.com/PsychoSTS>, Daniel Hritzkiv <https://github.com/dhritzkiv>, Apurva Ojas <https://github.com/apurvaojas>, Tiger Oakes <https://github.com/NotWoods>
// Definitions: https://github.com//DefinitelyTyped
export * from "./three-core";

View File

@@ -2303,12 +2303,12 @@ export class CubeTextureLoader {
constructor(manager?: LoadingManager);
manager: LoadingManager;
corssOrigin: string;
path: string;
crossOrigin: string;
path?: string;
load(urls: Array<string>, onLoad?: (texture: CubeTexture) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): CubeTexture;
setCrossOrigin(crossOrigin: string): CubeTextureLoader;
setPath(path: string): CubeTextureLoader;
setCrossOrigin(crossOrigin: string): this;
setPath(path: string): this;
}
export class DataTextureLoader {