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:
Jessica Franco
2019-02-17 02:22:16 +09:00
committed by GitHub
2 changed files with 15 additions and 1 deletions
+1
View File
@@ -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
+14 -1
View File
@@ -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 {