Explorar o código

Fix types for Line2

Allow to access to the original LineGeometry and LineMaterial safely without an explicit cast
Giulio Zausa %!s(int64=5) %!d(string=hai) anos
pai
achega
45b2f2e585
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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;