Explorar o código

Examples: Clean up.

linbingquan %!s(int64=5) %!d(string=hai) anos
pai
achega
131c788e17
Modificáronse 2 ficheiros con 18 adicións e 18 borrados
  1. 15 15
      examples/jsm/libs/stats.module.d.ts
  2. 3 3
      examples/jsm/libs/stats.module.js

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

@@ -1,24 +1,24 @@
 declare interface Stats {
-  REVISION: number;
-  dom: HTMLDivElement;
-  addPanel(panel: Stats.Panel): Stats.Panel;
-  showPanel(id: number): void;
-  begin(): void;
-  end(): void;
-  update(): void;
-  domElement: HTMLDivElement;
-  setMode(id: number): void;
+	REVISION: number;
+	dom: HTMLDivElement;
+	addPanel( panel: Stats.Panel ): Stats.Panel;
+	showPanel( id: number ): void;
+	begin(): void;
+	end(): void;
+	update(): void;
+	domElement: HTMLDivElement;
+	setMode( id: number ): void;
 }
 
 declare function Stats(): Stats;
 
 declare namespace Stats {
-  interface Panel {
-    dom: HTMLCanvasElement;
-    update(value: number, maxValue: number): void;
-  }
+	interface Panel {
+		dom: HTMLCanvasElement;
+		update( value: number, maxValue: number ): void;
+	}
 
-  function Panel(): Panel;
+	function Panel(): Panel;
 }
 
-export default Stats
+export default Stats;

+ 3 - 3
examples/jsm/libs/stats.module.js

@@ -115,9 +115,9 @@ Stats.Panel = function ( name, fg, bg ) {
 	var PR = round( window.devicePixelRatio || 1 );
 
 	var WIDTH = 80 * PR, HEIGHT = 48 * PR,
-			TEXT_X = 3 * PR, TEXT_Y = 2 * PR,
-			GRAPH_X = 3 * PR, GRAPH_Y = 15 * PR,
-			GRAPH_WIDTH = 74 * PR, GRAPH_HEIGHT = 30 * PR;
+		TEXT_X = 3 * PR, TEXT_Y = 2 * PR,
+		GRAPH_X = 3 * PR, GRAPH_Y = 15 * PR,
+		GRAPH_WIDTH = 74 * PR, GRAPH_HEIGHT = 30 * PR;
 
 	var canvas = document.createElement( 'canvas' );
 	canvas.width = WIDTH;