From 117ecb86cfdea98012d4de67d0ccd6b36e62183c Mon Sep 17 00:00:00 2001 From: SereznoKot Date: Wed, 30 Mar 2016 17:28:19 +0300 Subject: [PATCH] Fix material and geometry types of Points - Set type for material according to docs - Make geometry parameter in constructor optional, because three.js provides a default value - Make geometry type in constructor match one of the class member --- threejs/three.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/threejs/three.d.ts b/threejs/three.d.ts index 14d2c0b4ea..e33b389ed5 100644 --- a/threejs/three.d.ts +++ b/threejs/three.d.ts @@ -4539,18 +4539,18 @@ declare namespace THREE { export class Points extends Object3D { /** - * @param geometry An instance of Geometry. + * @param geometry An instance of Geometry or BufferGeometry. * @param material An instance of Material (optional). */ constructor( - geometry: Geometry | BufferGeometry, - material?: PointsMaterial | ShaderMaterial + geometry?: Geometry | BufferGeometry, + material?: Material ); /** - * An instance of Geometry, where each vertex designates the position of a particle in the system. + * An instance of Geometry or BufferGeometry, where each vertex designates the position of a particle in the system. */ - geometry: Geometry; + geometry: Geometry | BufferGeometry; /** * An instance of Material, defining the object's appearance. Default is a PointsMaterial with randomised colour.