Fix three.js PlaneGeometry/PlaneBufferGeometry typing

- PlaneBufferGeometry is a subclass of BufferGeometry
- PlaneGeometry is a subclass of Geometry
- both have the same constructor signature
This commit is contained in:
John Quigley
2014-11-27 12:09:27 -05:00
parent 7c94fa739c
commit ad64d57954

12
threejs/three.d.ts vendored
View File

@@ -5434,7 +5434,7 @@ declare module THREE {
};
}
export class PlaneBufferGeometry extends Geometry {
export class PlaneBufferGeometry extends BufferGeometry {
constructor(width: number, height: number, widthSegments?: number, heightSegments?: number);
parameters: {
@@ -5445,7 +5445,15 @@ declare module THREE {
};
}
export class PlaneGeometry extends PlaneBufferGeometry {
export class PlaneGeometry extends Geometry {
constructor(width: number, height: number, widthSegments?: number, heightSegments?: number);
parameters: {
width: number;
height: number;
widthSegments: number;
heightSegments: number;
};
}
export class PolyhedronGeometry extends Geometry {