Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Improve Object3D page. #907

Merged
merged 1 commit into from
Apr 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions types/three/src/core/Object3D.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,11 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
clone(recursive?: boolean): this;

/**
* Copy the given object into this object
* @remarks Note: event listeners and user-defined callbacks ({@link onAfterRender | .onAfterRender} and {@link onBeforeRender | .onBeforeRender}) are not copied.
* @param source
* @param recursive If true, descendants of the object are also copied. Default `true`
* Copies the given object into this object.
* @remarks Event listeners and user-defined callbacks ({@link .onAfterRender} and {@link .onBeforeRender}) are not copied.
* @param object
* @param recursive If set to `true`, descendants of the object are copied next to the existing ones. If set to
* `false`, descendants are left unchanged. Default is `true`.
*/
copy(source: this, recursive?: boolean): this;
copy(object: Object3D, recursive?: boolean): this;
}
Loading