浏览代码

Fix types for Line2

Allow to access to the original LineGeometry and LineMaterial safely without an explicit cast
Giulio Zausa 5 年之前
父节点
当前提交
45b2f2e585
共有 1 个文件被更改,包括 3 次插入0 次删除
  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;