Browse Source

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

TS: Make subclass inheritance more comfortable
Michael Herzog 6 years ago
parent
commit
ce97f8b14b
4 changed files with 1 additions and 5 deletions
  1. 0 2
      src/cameras/Camera.d.ts
  2. 1 1
      src/core/Object3D.d.ts
  3. 0 1
      src/objects/Mesh.d.ts
  4. 0 1
      src/scenes/Scene.d.ts

+ 0 - 2
src/cameras/Camera.d.ts

@@ -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;

+ 1 - 1
src/core/Object3D.d.ts

@@ -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;
 
 
 }
 }

+ 0 - 1
src/objects/Mesh.d.ts

@@ -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;
 
 
 }
 }

+ 0 - 1
src/scenes/Scene.d.ts

@@ -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;