Browse Source

Merge pull request #19573 from marquizzo/issues/19562

TS: Allow for 3 optional arguments when creating Stats.Panel()
Mr.doob 5 năm trước cách đây
mục cha
commit
5eb71d5122
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/jsm/libs/stats.module.d.ts

+ 1 - 1
examples/jsm/libs/stats.module.d.ts

@@ -18,7 +18,7 @@ declare namespace Stats {
 		update( value: number, maxValue: number ): void;
 	}
 
-	function Panel(): Panel;
+	function Panel(name?: string, fg?: string, bg?: string): Panel;
 }
 
 export default Stats;