|
@@ -10,15 +10,18 @@ import { Intersection } from '../core/Raycaster';
|
|
|
*
|
|
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/objects/ParticleSystem.js|src/objects/ParticleSystem.js}
|
|
|
*/
|
|
|
-export class Points extends Object3D {
|
|
|
+export class Points <
|
|
|
+ TGeometry extends Geometry | BufferGeometry = Geometry | BufferGeometry,
|
|
|
+ TMaterial extends Material | Material[] = Material | Material[]
|
|
|
+> extends Object3D {
|
|
|
|
|
|
/**
|
|
|
* @param geometry An instance of Geometry or BufferGeometry.
|
|
|
* @param material An instance of Material (optional).
|
|
|
*/
|
|
|
constructor(
|
|
|
- geometry?: Geometry | BufferGeometry,
|
|
|
- material?: Material | Material[]
|
|
|
+ geometry?: TGeometry,
|
|
|
+ material?: TMaterial
|
|
|
);
|
|
|
|
|
|
type: 'Points';
|
|
@@ -29,12 +32,12 @@ export class Points extends Object3D {
|
|
|
/**
|
|
|
* An instance of Geometry or BufferGeometry, where each vertex designates the position of a particle in the system.
|
|
|
*/
|
|
|
- geometry: Geometry | BufferGeometry;
|
|
|
+ geometry: TGeometry;
|
|
|
|
|
|
/**
|
|
|
* An instance of Material, defining the object's appearance. Default is a PointsMaterial with randomised colour.
|
|
|
*/
|
|
|
- material: Material | Material[];
|
|
|
+ material: TMaterial;
|
|
|
|
|
|
raycast( raycaster: Raycaster, intersects: Intersection[] ): void;
|
|
|
updateMorphTargets(): void;
|