未验证 提交 ce97f8b1 编写于 作者: M Michael Herzog 提交者: GitHub

Merge pull request #17025 from eos3tion/optimize-`copy`-define

TS: Make subclass inheritance more comfortable
...@@ -31,8 +31,6 @@ export class Camera extends Object3D { ...@@ -31,8 +31,6 @@ export class Camera extends Object3D {
isCamera: true; isCamera: true;
copy( source: Camera, recursive?: boolean ): this;
getWorldDirection( target: Vector3 ): Vector3; getWorldDirection( target: Vector3 ): Vector3;
updateMatrixWorld( force?: boolean ): void; updateMatrixWorld( force?: boolean ): void;
......
...@@ -346,6 +346,6 @@ export class Object3D extends EventDispatcher { ...@@ -346,6 +346,6 @@ export class Object3D extends EventDispatcher {
* @param object * @param object
* @param recursive * @param recursive
*/ */
copy( source: Object3D, recursive?: boolean ): this; copy( source: this, recursive?: boolean ): this;
} }
...@@ -24,6 +24,5 @@ export class Mesh extends Object3D { ...@@ -24,6 +24,5 @@ export class Mesh extends Object3D {
setDrawMode( drawMode: TrianglesDrawModes ): void; setDrawMode( drawMode: TrianglesDrawModes ): void;
updateMorphTargets(): void; updateMorphTargets(): void;
raycast( raycaster: Raycaster, intersects: Intersection[] ): void; raycast( raycaster: Raycaster, intersects: Intersection[] ): void;
copy( source: this, recursive?: boolean ): this;
} }
...@@ -26,7 +26,6 @@ export class Scene extends Object3D { ...@@ -26,7 +26,6 @@ export class Scene extends Object3D {
autoUpdate: boolean; autoUpdate: boolean;
background: null | Color | Texture; background: null | Color | Texture;
copy( source: this, recursive?: boolean ): this;
toJSON( meta?: any ): any; toJSON( meta?: any ): any;
dispose(): void; dispose(): void;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册