CSS3DRenderer.d.ts 635 B

1234567891011121314151617181920212223242526272829303132
  1. import {
  2. Object3D,
  3. Scene,
  4. Camera
  5. } from '../../../src/Three';
  6. export class CSS3DObject extends Object3D {
  7. constructor( element: HTMLElement );
  8. element: HTMLElement;
  9. onBeforeRender: (renderer: unknown, scene: Scene, camera: Camera) => void;
  10. onAfterRender: (renderer: unknown, scene: Scene, camera: Camera) => void;
  11. }
  12. export class CSS3DSprite extends CSS3DObject {
  13. constructor( element: HTMLElement );
  14. }
  15. export class CSS3DRenderer {
  16. constructor();
  17. domElement: HTMLElement;
  18. getSize(): {width: number, height: number};
  19. setSize( width: number, height: number ): void;
  20. render( scene: Scene, camera: Camera ): void;
  21. }