Added utility classes of three.js (and minor modifications).

This commit is contained in:
satoru kimura
2014-10-24 09:14:39 +09:00
parent bd9a1922e4
commit bd93df164f
9 changed files with 147 additions and 10 deletions
+32
View File
@@ -0,0 +1,32 @@
// Type definitions for CSS3DRenderer.js
// Project: https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CSS3DRenderer.js
// Definitions by: Satoru Kimura <https://github.com/gyohk>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
// This renderer does not work in IE. Can be found here for more information.
// https://github.com/mrdoob/three.js/issues/4783
/// <reference path="../three.d.ts" />
declare module THREE {
class CSS3DObject extends Object3D {
constructor(element: any);
element: any;
}
class CSS3DSprite extends CSS3DObject {
constructor(element: any);
}
class CSS3DRenderer {
constructor();
domElement:HTMLElement;
setSize(width: number, height: number): void;
render(scene: THREE.Scene, camera: THREE.Camera): void;
}
}