three
Version:
JavaScript 3D library
25 lines (20 loc) • 506 B
TypeScript
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;
}
declare function Stats(): Stats;
declare namespace Stats {
interface Panel {
dom: HTMLCanvasElement;
update( value: number, maxValue: number ): void;
}
function Panel( name?: string, fg?: string, bg?: string ): Panel;
}
export default Stats;