{"_id":"heatmap","_rev":"19-ad55a824b9317b5dea8b2b261a4354b9","name":"heatmap","description":"canvas heat maps for node and the browser","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.0":{"name":"heatmap","version":"0.0.0","description":"canvas heat maps for node and the browser","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"dependencies":{"color-convert":"0.2.x","canvas":"0.7.x"},"devDependencies":{"expresso":"0.7.x","jquery-browserify":"1.6.x","browserify":"1.3.x","uglify-js":">=1.0.6 <1.1"},"scripts":{"test":"expresso"},"repository":{"type":"git","url":"git://github.com/substack/node-heatmap.git"},"keywords":["heatmap","canvas","browser"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"_id":"heatmap@0.0.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.10","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"019b86cdce007c586c5d19e6a108d17017b25c1b","tarball":"https://registry.npmjs.org/heatmap/-/heatmap-0.0.0.tgz","integrity":"sha512-NxQf2LO3jX2gP34gOe4wCKXcn22LqwIvZb8z/6M/3iMy6JNAdTvE0GLqxLyqELgy7E1HZN4I0EYf2eZaHPUIpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCn4DJBAzQA5f1LGybvn18e5VZ8VLiBGsXZnBC7/6rlQgIgRooIb9aKsdg7ctBbW2zezIXtEbZ8hjdMwnK5Ztf4H74="}]}},"0.0.1":{"name":"heatmap","version":"0.0.1","description":"canvas heat maps for node and the browser","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"dependencies":{"color-convert":"0.2.x","canvas":"0.7.x"},"devDependencies":{"expresso":"0.7.x","jquery-browserify":"1.6.x","browserify":"1.3.x","uglify-js":">=1.0.6 <1.1"},"scripts":{"test":"expresso"},"repository":{"type":"git","url":"git://github.com/substack/node-heatmap.git"},"keywords":["heatmap","canvas","browser"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"_id":"heatmap@0.0.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.10","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"f9da8fadc59a13380e78184aa5bfee0abfd1f1a5","tarball":"https://registry.npmjs.org/heatmap/-/heatmap-0.0.1.tgz","integrity":"sha512-aBgz6TDA6XO5ZVghR5BAcwFo3BIOY8VXFObXfaPhDXkPc/5ll1zRYlHjk996XxA4VFg0PRiJbkJtfHmeyCSmEQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDCwo/PoJq94X2JSyQBwm2uodeqjmhWnODsL7/Rit/OtQIhAL9JEmvDMQpRvwG/q8OllzFnRBGEnuHjzxgHfjVT03XV"}]}},"0.0.2":{"name":"heatmap","version":"0.0.2","description":"canvas heat maps for node and the browser","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"dependencies":{"color-convert":"0.2.x","canvas":"0.7.x"},"devDependencies":{"expresso":"0.7.x","jquery-browserify":"1.6.x","browserify":"1.3.x","uglify-js":">=1.0.6 <1.1"},"scripts":{"test":"expresso"},"repository":{"type":"git","url":"git://github.com/substack/node-heatmap.git"},"keywords":["heatmap","canvas","browser"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"_id":"heatmap@0.0.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.10","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"3be81cf62c8904f7227b36116b245693d0b52569","tarball":"https://registry.npmjs.org/heatmap/-/heatmap-0.0.2.tgz","integrity":"sha512-pgdLa0rPVxyzP/cAdqBIy+Fk+thoFUx4fWaV10yuW34yu4xxxda+giLeSYUSxD5VG9F7CLG5JfDTuyV/0lLfIg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGBNFeEanwJRCtBMQWCPNIZ0FUYsgPlnc0QpJ6aqe3fAiBnszuPY2wRh0KElpC5+gRwI2vYcDogYEA8xrHeh6+woA=="}]},"maintainers":[{"name":"substack","email":"mail@substack.net"}]},"0.0.3":{"name":"heatmap","version":"0.0.3","description":"canvas heat maps for node and the browser","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"dependencies":{"color-convert":"0.2.x","canvas":"0.7.x"},"devDependencies":{"expresso":"0.7.x","jquery-browserify":"1.6.x","browserify":"1.3.x","uglify-js":">=1.0.6 <1.1"},"scripts":{"test":"expresso"},"repository":{"type":"git","url":"git://github.com/substack/node-heatmap.git"},"keywords":["heatmap","canvas","browser"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"_id":"heatmap@0.0.3","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.10","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"9d65cd4b062277e65f4c979c92e634b70033f9bc","tarball":"https://registry.npmjs.org/heatmap/-/heatmap-0.0.3.tgz","integrity":"sha512-8rQImeXwgKyWxYKHELzY0FXLKkofC0sdGcKtHCbaQ7cpVXuol7Un9cCDxQhwNepPZP+XMxvlq14KRPoUjhZP8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICAwWTdf1pSRKJNKEiz//c1TyRkg94q+pP433af6GxiiAiA5bfuGJoh2gRox1y/BxdZcDADLSFYnzJRv5pgAwt6wlw=="}]},"maintainers":[{"name":"substack","email":"mail@substack.net"}]},"0.0.4":{"name":"heatmap","version":"0.0.4","description":"canvas heat maps for node and the browser","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"dependencies":{"color-convert":"0.2.x","canvas":"0.8.x"},"devDependencies":{"expresso":"0.7.x","jquery-browserify":"1.6.x","browserify":"1.3.x","uglify-js":">=1.0.6 <1.1"},"scripts":{"test":"expresso"},"repository":{"type":"git","url":"git://github.com/substack/node-heatmap.git"},"keywords":["heatmap","canvas","browser"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"_npmUser":{"name":"substack","email":"mail@substack.net"},"_id":"heatmap@0.0.4","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"08b3ba1a41d99e75e9e1f4e9c78477a88f4d3a69","tarball":"https://registry.npmjs.org/heatmap/-/heatmap-0.0.4.tgz","integrity":"sha512-wAvxR9p08xWvy0q95Gb+a2ywmobM+hTm4oi0Kx1sxXl9W6c+aw0nFqrN2LQ55114a/lIqeBFtQoXc8Xku+8oYQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCm3yvQ7BEywYXc8wla9cQGfbxaWEjkzZr5RsW9C0p35gIgPscWPJCmEvTW8uraM+8R9/kZe2Yt6pwKxCDdNRKeavk="}]},"maintainers":[{"name":"substack","email":"mail@substack.net"}]},"0.0.5":{"name":"heatmap","version":"0.0.5","description":"canvas heat maps for node and the browser","main":"index.js","directories":{"lib":".","example":"example","test":"test"},"dependencies":{"color-convert":"0.2.x","canvas":"1.0.x"},"devDependencies":{"expresso":"0.7.x","jquery-browserify":"1.6.x","browserify":"1.3.x","uglify-js":">=1.0.6 <1.1"},"scripts":{"test":"expresso"},"repository":{"type":"git","url":"http://github.com/substack/node-heatmap.git"},"keywords":["heatmap","canvas","browser"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT/X11","engine":{"node":">=0.4"},"readme":"heatmap\n=======\n\nHeatmaps for node.js and the browser, groovy!\n\n![groovy heatmap, man](http://substack.net/images/heatmap.png)\n\nexample\n=======\n\nblob.js\n-------\n\n````javascript\nvar heatmap = require('heatmap');\n\nvar heat = heatmap(500, 500, { radius : 30 });\nfor (var i = 0; i < 5000; i++) {\n    var rho = Math.random() * 2 * Math.PI;\n    var z = Math.pow(Math.random(), 2) * 200;\n    \n    var x = 250 + Math.cos(rho) * z;\n    var y = 250 + Math.sin(rho) * z;\n    \n    heat.addPoint(x, y);\n}\nheat.draw();\n\nvar fs = require('fs');\nfs.writeFileSync('blob.png', heat.canvas.toBuffer());\n````\n\nmethods\n=======\n\nvar heatmap = require('heatmap');\n\nvar heat = heatmap(...)\n-----------------------\n\nCreate a new heatmap from an existing canvas element, a numeric width and\nheight, or an option object with canvas or width and height fields.\n\nOptionally, you can set the `opts.radius` and `opts.threshold` to control the\nrendering a little.\n\nheat.addPoint(x, y, params)\n---------------------------\n\nAdd a point to the heatmap with a `radius`.\n\n`params` can have:\n\n* radius, defaults to heat.radius || 20\n* weight, defaults to 0.1\n\nheat.scale(x, y)\n----------------\n\nScale the canvas by the coefficients `x` and `y`.\n\nIf `y` is undefined, scale both x and y by the first parameter, `x`.\n\nheat.draw()\n-----------\n\nRender all the points onto the canvas element.\n\nheat.canvas\n-----------\n\nThe HTML Canvas element.\n\nProtip: with the [canvas module](https://github.com/LearnBoost/node-canvas) for\nnode you can `heat.canvas.buffer()` to get a Buffer with a PNG file all up in it.\n\ninstall\n=======\n\nWith [npm](http://npmjs.org), just do:\n\n    npm install heatmap\n","readmeFilename":"README.markdown","_id":"heatmap@0.0.5","dist":{"shasum":"de6aeda7f2e491a78eec5d26fba0bd3b79955097","tarball":"https://registry.npmjs.org/heatmap/-/heatmap-0.0.5.tgz","integrity":"sha512-bPYwnv0pPgnjrzI38ndC811K0pR2ilcnSbUojCRhZc8lzCsVA5CfPdbr1P24NNiWkHHivQclpsSCnJrId64rBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHZKC7Bqv2mtdmMRUD5CxwMjeHAxUhj9tqjKycF9lNVeAiEAy/uXamnoH4WqVKAwA6K3EJMG3Xm83TKj2FTqc29RrLE="}]},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"substack","email":"mail@substack.net"}]}},"maintainers":[{"email":"nopersonsmodules@gmail.com","name":"nopersonsmodules"}],"time":{"modified":"2022-11-08T10:39:10.150Z","created":"2011-07-29T15:08:50.790Z","0.0.0":"2011-07-29T15:08:51.527Z","0.0.1":"2011-07-29T17:35:49.212Z","0.0.2":"2011-08-27T11:01:23.600Z","0.0.3":"2011-08-27T11:19:31.331Z","0.0.4":"2012-01-10T11:12:51.791Z","0.0.5":"2013-04-16T23:31:26.500Z"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"http://github.com/substack/node-heatmap.git"},"users":{"tobitobitobi":true,"goliatone":true}}