Bläddra i källkod

Fix types for Line2

Allow to access to the original LineGeometry and LineMaterial safely without an explicit cast
Giulio Zausa 5 år sedan
förälder
incheckning
45b2f2e585
1 ändrade filer med 3 tillägg och 0 borttagningar
  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;