From 9d25b0419d9595cbe88b05f52ea89c824bffe053 Mon Sep 17 00:00:00 2001 From: David Asmuth Date: Fri, 3 Mar 2017 13:57:56 +0100 Subject: [PATCH] three update r84 #10393: BinaryTextureLoader deprecated in favour of DataTextureLoader #10393 --- three/index.d.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/three/index.d.ts b/three/index.d.ts index 7b76100c17..bc77b24045 100644 --- a/three/index.d.ts +++ b/three/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for three.js 0.83 // Project: http://mrdoob.github.com/three.js/ -// Definitions by: Kon , Satoru Kimura , Florent Poujol , SereznoKot , HouChunlei +// Definitions by: Kon , Satoru Kimura , Florent Poujol , SereznoKot , HouChunlei , David Asmuth // Definitions: https://github.com/borisyankov/DefinitelyTyped /// @@ -2161,14 +2161,18 @@ declare namespace THREE { setPath(path: string): CubeTextureLoader; } - export class BinaryTextureLoader { + export class DataTextureLoader { constructor(manager?: LoadingManager); manager: LoadingManager; load(url: string, onLoad: (dataTexture: DataTexture) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void): void; } - export class DataTextureLoader extends BinaryTextureLoader {} + + /** + * @deprecated since 0.84.0. Use DataTextureLoader (renamed) + */ + export class BinaryTextureLoader extends DataTextureLoader {} export class CompressedTextureLoader { constructor(manager?: LoadingManager);