From ad64d579543053b1fa25bc1c1278feccc2348f83 Mon Sep 17 00:00:00 2001 From: John Quigley Date: Thu, 27 Nov 2014 12:09:27 -0500 Subject: [PATCH] Fix three.js PlaneGeometry/PlaneBufferGeometry typing - PlaneBufferGeometry is a subclass of BufferGeometry - PlaneGeometry is a subclass of Geometry - both have the same constructor signature --- threejs/three.d.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/threejs/three.d.ts b/threejs/three.d.ts index 111a7fc9b..b1660aa7e 100644 --- a/threejs/three.d.ts +++ b/threejs/three.d.ts @@ -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 {