{"_id":"@types/stats.js","_rev":"2223863","name":"@types/stats.js","description":"TypeScript definitions for Stats.js","dist-tags":{"latest":"0.17.0","ts2.0":"0.17.0","ts2.1":"0.17.0","ts2.2":"0.17.0","ts2.3":"0.17.0","ts2.4":"0.17.0","ts2.5":"0.17.0","ts2.6":"0.17.0","ts2.7":"0.17.0","ts2.8":"0.17.0","ts2.9":"0.17.0","ts3.0":"0.17.0","ts3.1":"0.17.0","ts3.2":"0.17.0","ts3.3":"0.17.0","ts3.4":"0.17.0","ts3.5":"0.17.0","ts3.6":"0.17.0","ts3.7":"0.17.0","ts3.8":"0.17.0","ts3.9":"0.17.0","ts4.0":"0.17.0","ts4.1":"0.17.0","ts4.2":"0.17.0","ts4.3":"0.17.0","ts4.4":"0.17.0","ts4.5":"0.17.0","ts4.6":"0.17.0","ts4.7":"0.17.0","ts4.8":"0.17.0","ts4.9":"0.17.0","ts5.0":"0.17.0"},"maintainers":[{"name":"types","email":""}],"time":{"modified":"2023-02-28T08:01:10.000Z","created":"2016-11-23T20:56:15.580Z","0.17.0":"2017-12-03T16:31:44.907Z","0.16.1":"2017-08-21T22:04:45.326Z","0.16.0":"2016-11-23T20:56:15.580Z"},"users":{"hjin_me":true},"repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"versions":{"0.17.0":{"name":"@types/stats.js","version":"0.17.0","description":"TypeScript definitions for Stats.js","license":"MIT","contributors":[{"name":"Gregory Dalton","url":"https://github.com/gregolai","githubUsername":"gregolai"},{"name":"Harm Berntsen","url":"https://github.com/hberntsen","githubUsername":"hberntsen"},{"name":"Dan Vanderkam","url":"https://github.com/danvk","githubUsername":"danvk"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"efc6c5763f75627be87c471029dd829d1f8783d7a29a14982e5abe8f62be7569","typeScriptVersion":"2.0","_id":"@types/stats.js@0.17.0","dist":{"shasum":"0ed81d48e03b590c24da85540c1d952077a9fe20","size":1775,"noattachment":false,"key":"/@types/stats.js/-/@types/stats.js-0.17.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/stats.js/download/@types/stats.js-0.17.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stats.js-0.17.0.tgz_1512318704834_0.9859970116522163"},"directories":{},"publish_time":1512318704907,"_hasShrinkwrap":false,"_cnpm_publish_time":1512318704907},"0.16.1":{"name":"@types/stats.js","version":"0.16.1","description":"TypeScript definitions for Stats.js","license":"MIT","contributors":[{"name":"Gregory Dalton","url":"https://github.com/gregolai"},{"name":"Harm Berntsen","url":"https://github.com/hberntsen"}],"main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"typesPublisherContentHash":"05ef53c6a782f4b3662349279b9847635b315aec9b44f56958813c39c8d48702","typeScriptVersion":"2.0","_id":"@types/stats.js@0.16.1","dist":{"shasum":"637d6604aa0a466b087b6b868052dddf78f36033","size":1622,"noattachment":false,"key":"/@types/stats.js/-/@types/stats.js-0.16.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/stats.js/download/@types/stats.js-0.16.1.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stats.js-0.16.1.tgz_1503353085227_0.8805442184675485"},"directories":{},"publish_time":1503353085326,"_hasShrinkwrap":false,"_cnpm_publish_time":1503353085326},"0.16.0":{"name":"@types/stats.js","version":"0.16.0","description":"TypeScript definitions for Stats.js 0.16.0","license":"MIT","author":"Gregory Dalton <https://github.com/gregolai>, Harm Berntsen <https://github.com/hberntsen>","main":"","repository":{"type":"git","url":"https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"},"scripts":{},"dependencies":{},"peerDependencies":{},"typings":"index.d.ts","typesPublisherContentHash":"0c369592106e0c0c3a362e7b11758e0510fa90bdfdad73538c2df3b52d319f78","_id":"@types/stats.js@0.16.0","dist":{"shasum":"8651bbe4efe166acff8ffcdb429e3178597f514d","size":1133,"noattachment":false,"key":"/@types/stats.js/-/@types/stats.js-0.16.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@types/stats.js/download/@types/stats.js-0.16.0.tgz"},"maintainers":[{"name":"types","email":""}],"_npmUser":{"name":"types","email":"ts-npm-types@microsoft.com"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stats.js-0.16.0.tgz_1479934573886_0.883539441274479"},"directories":{},"publish_time":1479934575580,"_cnpm_publish_time":1479934575580,"_hasShrinkwrap":false}},"readme":"# Installation\r\n> `npm install --save @types/stats.js`\r\n\r\n# Summary\r\nThis package contains type definitions for stats.js (https://github.com/mrdoob/stats.js).\r\n\r\n# Details\r\nFiles were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js.\r\n## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stats.js/index.d.ts)\r\n````ts\r\ndeclare class Stats {\n    constructor();\n\n    REVISION: number;\n    dom: HTMLDivElement;\n\n    addPanel(panel: Stats.Panel): Stats.Panel;\n\n    /**\n     * @param value 0:fps, 1: ms, 2: mb, 3+: custom\n     */\n    showPanel(value: number): void;\n\n    begin(): void;\n    end(): number;\n    update(): void;\n\n    // Backwards Compatibility\n\n    /**\n     * @deprecated Use `dom` instead.\n     */\n    domElement: HTMLDivElement;\n\n    /**\n     * @deprecated Use `showPanel` instead.\n     */\n    setMode(value: number): void;\n}\n\ndeclare namespace Stats {\n    class Panel {\n        constructor(name: string, foregroundColor: string, backgroundColor: string);\n        dom: HTMLCanvasElement;\n        update(value: number, maxValue: number): void;\n    }\n}\n\ndeclare module \"stats.js\" {\n    export = Stats;\n}\n\r\n````\r\n\r\n### Additional Details\r\n * Last updated: Mon, 05 May 2025 20:35:19 GMT\r\n * Dependencies: none\r\n\r\n# Credits\r\nThese definitions were written by [Gregory Dalton](https://github.com/gregolai), [Harm Berntsen](https://github.com/hberntsen), and [Dan Vanderkam](https://github.com/danvk).\r\n","_attachments":{},"license":"MIT"}