Skip to content

Commit

Permalink
Merge pull request #19270 from linbingquan/dev-cleanup
Browse files Browse the repository at this point in the history
Examples: Clean up.
  • Loading branch information
mrdoob committed May 4, 2020
2 parents 80dc0ad + 131c788 commit b139f82
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
30 changes: 15 additions & 15 deletions examples/jsm/libs/stats.module.d.ts
Original file line number Diff line number Diff line change
@@ -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;
6 changes: 3 additions & 3 deletions examples/jsm/libs/stats.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b139f82

Please sign in to comment.