forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
three-css3drenderer.d.ts
32 lines (22 loc) · 867 Bytes
/
three-css3drenderer.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Type definitions for three.js (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;
}
}