Jelajahi Sumber

Overwrite typescript signatures of onBeforeRender and onAfterRender

Julien Dargelos 5 tahun lalu
induk
melakukan
f20a1c5333
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  1. 3 0
      examples/jsm/renderers/CSS3DRenderer.d.ts

+ 3 - 0
examples/jsm/renderers/CSS3DRenderer.d.ts

@@ -9,6 +9,9 @@ export class CSS3DObject extends Object3D {
 	constructor( element: HTMLElement );
 	element: HTMLElement;
 
+	onBeforeRender: (renderer: CSS3DRenderer, scene: Scene, camera: Camera) => void;
+	onAfterRender: (renderer: CSS3DRenderer, scene: Scene, camera: Camera) => void;
+
 }
 
 export class CSS3DSprite extends CSS3DObject {