CSS2DRenderer.d.ts 546 B

1234567891011121314151617181920212223242526
  1. import {
  2. Object3D,
  3. Scene,
  4. Camera
  5. } from '../../../src/Three';
  6. export class CSS2DObject 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 CSS2DRenderer {
  13. constructor();
  14. domElement: HTMLElement;
  15. getSize(): {width: number, height: number};
  16. setSize( width: number, height: number ): void;
  17. render( scene: Scene, camera: Camera ): void;
  18. }