Skip to content

Commit

Permalink
Docs: Document Object3D events. (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 committed Feb 23, 2024
1 parent c777aa5 commit b1949e9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions types/three/src/core/Object3D.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,24 @@ import { Layers } from "./Layers.js";
import { Intersection, Raycaster } from "./Raycaster.js";

export interface Object3DEventMap {
/**
* Fires when the object has been added to its parent object.
*/
added: {};

/**
* Fires when the object has been removed from its parent object.
*/
removed: {};

/**
* Fires when a new child object has been added.
*/
childadded: { child: Object3D };

/**
* Fires when a new child object has been removed.
*/
childremoved: { child: Object3D };
}

Expand Down

0 comments on commit b1949e9

Please sign in to comment.