mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
[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:
committed by
Mohamed Hegazy
parent
8070848da5
commit
6c5c0a8898
2
types/three/index.d.ts
vendored
2
types/three/index.d.ts
vendored
@@ -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";
|
||||
|
||||
8
types/three/three-core.d.ts
vendored
8
types/three/three-core.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user