Skip to content

Commit

Permalink
Docs: Improve SceneUtils page. (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored May 17, 2024
1 parent 19b8df3 commit 07d82a0
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions types/three/examples/jsm/utils/SceneUtils.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,25 @@ export function reduceVertices<TValue>(
): TValue;

/**
* @param object Object to traverse.
* A generator based version of {@link Object3D.traverse}.
*
* @param object The 3D object to traverse.
* @yields Objects that passed the filter condition.
*/
export function traverseGenerator(object: Object3D): Generator<Object3D, void, unknown>;

/**
* @param object Object to traverse.
* A generator based version of {@link Object3D.traverseVisible}.
*
* @param object The 3D object to traverse.
* @yields Objects that passed the filter condition.
*/
export function traverseVisibleGenerator(object: Object3D): Generator<Object3D, void, unknown>;

/**
* @param object Object to traverse.
* A generator based version of {@link Object3D.traverseAncestors}.
*
* @param object The 3D object to traverse.
* @yields Objects that passed the filter condition.
*/
export function traverseAncestorsGenerator(object: Object3D): Generator<Object3D, void, unknown>;

0 comments on commit 07d82a0

Please sign in to comment.