Merge pull request #3422 from 12kb/patch-1

EventDispatcher mixins added to OrbitControls
This commit is contained in:
Masahiro Wakame
2015-01-13 19:00:37 +09:00
+7 -1
View File
@@ -38,5 +38,11 @@ declare module THREE {
mouseButtons: { ORBIT: MOUSE; ZOOM: MOUSE; PAN: MOUSE; };
update():void;
// EventDispatcher mixins
addEventListener(type: string, listener: (event: any) => void ): void;
hasEventListener(type: string, listener: (event: any) => void): void;
removeEventListener(type: string, listener: (event: any) => void): void;
dispatchEvent(event: { type: string; target: any; }): void;
}
}
}