Browse Source

Fix types for Line2

Allow to access to the original LineGeometry and LineMaterial safely without an explicit cast
Giulio Zausa 5 years ago
parent
commit
45b2f2e585
1 changed files with 3 additions and 0 deletions
  1. 3 0
      examples/jsm/lines/Line2.d.ts

+ 3 - 0
examples/jsm/lines/Line2.d.ts

@@ -4,6 +4,9 @@ import { LineMaterial } from './LineMaterial';
 
 export class Line2 extends LineSegments2 {
 
+	geometry?: LineGeometry;
+	material?: LineMaterial;
+
 	constructor( geometry?: LineGeometry, material?: LineMaterial );
 	readonly isLine2: true;