mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
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:
12
threejs/three.d.ts
vendored
12
threejs/three.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user