From 270b7b203014416f1e9a8934449c95fb12710121 Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Sun, 4 Nov 2018 05:00:31 +0800 Subject: [PATCH 1/3] change 2 three issue --- types/three/three-core.d.ts | 3 ++- types/three/three-unrealbloompass.d.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 66276bb1f4..e9903ba4fd 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -1127,7 +1127,8 @@ export class EventDispatcher { export interface Event { type: string; - target: any; + target?: any; + [attachment: string]: any; } /** diff --git a/types/three/three-unrealbloompass.d.ts b/types/three/three-unrealbloompass.d.ts index dec35b3da7..ed58b853ac 100644 --- a/types/three/three-unrealbloompass.d.ts +++ b/types/three/three-unrealbloompass.d.ts @@ -22,6 +22,8 @@ export class UnrealBloomPass extends Pass { camera: OrthographicCamera; scene: Scene; quad: Mesh; + radius: number; + threshold: number; dispose(): void; getSeparableBlurMaterial(): ShaderMaterial; getCompositeMaterial(): ShaderMaterial; From bb9e80b03447be4727cf4b40499956317ddeebbe Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Sun, 4 Nov 2018 05:12:51 +0800 Subject: [PATCH 2/3] add my name --- types/three/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/three/index.d.ts b/types/three/index.d.ts index 74ce9ac0ee..fdcae48767 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -21,6 +21,7 @@ // Ethan Kay , // Methuselah96 // Dilip Ramirez +// Zhang Hao // Definitions: https://github.com//DefinitelyTyped // TypeScript Version: 2.8 @@ -32,7 +33,7 @@ export * from "./three-copyshader"; export * from "./three-css3drenderer"; export * from "./three-ctmloader"; export * from "./three-ddsloader"; -export * from './three-dragcontrols'; +export * from "./three-dragcontrols"; export * from "./three-editorcontrols"; export * from "./three-effectcomposer"; export * from "./three-examples"; From 9e26c18127335668375443d31eea7da2a93b1132 Mon Sep 17 00:00:00 2001 From: Devilsparta Date: Sun, 4 Nov 2018 21:19:50 +0800 Subject: [PATCH 3/3] Update three-core.d.ts fix indention issue --- types/three/three-core.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index e9903ba4fd..6f0051404c 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -1127,8 +1127,8 @@ export class EventDispatcher { export interface Event { type: string; - target?: any; - [attachment: string]: any; + target?: any; + [attachment: string]: any; } /**