mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 23:07:06 +00:00
Merge pull request #32944 from psuter/three-lineloop
Add definition for LineLoop in three Co-authored-by: Jessica Franco <jessicamfranco3@gmail.com>
This commit is contained in:
Vendored
+1
@@ -25,6 +25,7 @@
|
||||
// Zhang Hao <https://github.com/devilsparta>
|
||||
// Konstantin Lukaschenko <https://github.com/KonstantinLukaschenko>
|
||||
// Daniel Yim <https://github.com/danyim>
|
||||
// Philippe Suter <https://github.com/psuter>
|
||||
// Definitions: https://github.com//DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
|
||||
Vendored
+14
-1
@@ -5273,13 +5273,23 @@ export class Line extends Object3D {
|
||||
geometry: Geometry | BufferGeometry;
|
||||
material: Material | Material[];
|
||||
|
||||
type: "Line";
|
||||
type: "Line" | "LineLoop" | "LineSegments";
|
||||
isLine: true;
|
||||
|
||||
computeLineDistances(): this;
|
||||
raycast(raycaster: Raycaster, intersects: Intersection[]): void;
|
||||
}
|
||||
|
||||
export class LineLoop extends Line {
|
||||
constructor(
|
||||
geometry?: Geometry | BufferGeometry,
|
||||
material?: Material | Material[]
|
||||
);
|
||||
|
||||
type: "LineLoop";
|
||||
isLineLoop: true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
@@ -5295,6 +5305,9 @@ export class LineSegments extends Line {
|
||||
material?: Material | Material[],
|
||||
mode?: number
|
||||
);
|
||||
|
||||
type: "LineSegments";
|
||||
isLineSegments: true;
|
||||
}
|
||||
|
||||
export class Mesh extends Object3D {
|
||||
|
||||
Reference in New Issue
Block a user