@types/stats.js
Advanced tools
Comparing version 0.16.1 to 0.17.0
@@ -1,7 +0,10 @@ | ||
// Type definitions for Stats.js 0.16.0 | ||
// Type definitions for Stats.js 0.17.0 | ||
// Project: https://github.com/mrdoob/stats.js | ||
// Definitions by: Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen> | ||
// Definitions by: Gregory Dalton <https://github.com/gregolai>, | ||
// Harm Berntsen <https://github.com/hberntsen>, | ||
// Dan Vanderkam <https://github.com/danvk> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
declare class Stats { | ||
constructor(); | ||
REVISION: number; | ||
@@ -17,6 +20,16 @@ dom: HTMLDivElement; | ||
update(): void; | ||
addPanel(panel: Stats.Panel): Stats.Panel; | ||
} | ||
declare module "stats.js" { | ||
declare namespace Stats { | ||
class Panel { | ||
constructor(name: string, foregroundColor: string, backgroundColor: string); | ||
dom: HTMLCanvasElement; | ||
update(value: number, maxValue: number): void; | ||
} | ||
} | ||
declare module 'stats.js' { | ||
export = Stats; | ||
} |
{ | ||
"name": "@types/stats.js", | ||
"version": "0.16.1", | ||
"version": "0.17.0", | ||
"description": "TypeScript definitions for Stats.js", | ||
@@ -9,7 +9,14 @@ "license": "MIT", | ||
"name": "Gregory Dalton", | ||
"url": "https://github.com/gregolai" | ||
"url": "https://github.com/gregolai", | ||
"githubUsername": "gregolai" | ||
}, | ||
{ | ||
"name": "Harm Berntsen", | ||
"url": "https://github.com/hberntsen" | ||
"url": "https://github.com/hberntsen", | ||
"githubUsername": "hberntsen" | ||
}, | ||
{ | ||
"name": "Dan Vanderkam", | ||
"url": "https://github.com/danvk", | ||
"githubUsername": "danvk" | ||
} | ||
@@ -24,4 +31,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "05ef53c6a782f4b3662349279b9847635b315aec9b44f56958813c39c8d48702", | ||
"typesPublisherContentHash": "efc6c5763f75627be87c471029dd829d1f8783d7a29a14982e5abe8f62be7569", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 21 Aug 2017 22:03:22 GMT | ||
* Last updated: Sun, 03 Dec 2017 16:31:01 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: Stats | ||
# Credits | ||
These definitions were written by Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen>. | ||
These definitions were written by Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen>, Dan Vanderkam <https://github.com/danvk>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3593
29