Browse Source

Merge pull request #17440 from takahirox/CleanupGeometryTS

Cleanup Geometry and DirectGeometry TS
Michael Herzog 6 years ago
parent
commit
6791c8f83d
2 changed files with 2 additions and 16 deletions
  1. 1 9
      src/core/DirectGeometry.d.ts
  2. 1 7
      src/core/Geometry.d.ts

+ 1 - 9
src/core/DirectGeometry.d.ts

@@ -5,13 +5,11 @@ import { Vector4 } from './../math/Vector4';
 import { Box3 } from './../math/Box3';
 import { Sphere } from './../math/Sphere';
 import { Geometry } from './Geometry';
-import { Event } from './Face3';
-import { EventDispatcher } from './EventDispatcher';
 import { MorphTarget } from './Geometry';
 /**
  * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/core/DirectGeometry.js">src/core/DirectGeometry.js</a>
  */
-export class DirectGeometry extends EventDispatcher {
+export class DirectGeometry {
 
 	constructor();
 
@@ -43,10 +41,4 @@ export class DirectGeometry extends EventDispatcher {
 	fromGeometry( geometry: Geometry ): DirectGeometry;
 	dispose(): void;
 
-	// EventDispatcher mixins
-	addEventListener( type: string, listener: ( event: Event ) => void ): void;
-	hasEventListener( type: string, listener: ( event: Event ) => void ): boolean;
-	removeEventListener( type: string, listener: ( event: Event ) => void ): void;
-	dispatchEvent( event: { type: string; [attachment: string]: any } ): void;
-
 }

+ 1 - 7
src/core/Geometry.d.ts

@@ -1,6 +1,6 @@
 import { Vector3 } from './../math/Vector3';
 import { Color } from './../math/Color';
-import { Face3, Event } from './Face3';
+import { Face3 } from './Face3';
 import { Vector2 } from './../math/Vector2';
 import { Vector4 } from './../math/Vector4';
 import { Box3 } from './../math/Box3';
@@ -252,10 +252,4 @@ export class Geometry extends EventDispatcher {
 	animation: AnimationClip;
 	animations: AnimationClip[];
 
-	// EventDispatcher mixins
-	addEventListener( type: string, listener: ( event: Event ) => void ): void;
-	hasEventListener( type: string, listener: ( event: Event ) => void ): boolean;
-	removeEventListener( type: string, listener: ( event: Event ) => void ): void;
-	dispatchEvent( event: { type: string; [attachment: string]: any } ): void;
-
 }