{"_id":"simpleheat","_rev":"10-c4c087d5277ff5de5ab87fa5379714e6","name":"simpleheat","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"simpleheat","version":"0.0.1","keywords":["heatmap","canvas","visualization"],"author":{"name":"Vladimir Agafonkin"},"_id":"simpleheat@0.0.1","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"homepage":"https://github.com/mourner/simpleheat","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"a120260a626790ffbfa39813db3379aeb1a55ba9","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-0.0.1.tgz","integrity":"sha512-q2f4MoNUP4k6ih1wZkaWLi/VOw0WHzXwr/QMPxfgRciDhNRMKTlO2FPCuZBUgZoaDP0a6PuiHHY03xw/w/W8wQ==","signatures":[{"sig":"MEYCIQD/sW6uRaf8uh/JP8p4I1t0ykhlBncOtDRva+WmwXr/nAIhAI9lMT7yOqqm69z2x237VFuTq5LD4rIoy6eiENl2Ez7Y","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simpleheat.js","_from":".","scripts":{"test":"jshint ."},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"repository":{"url":"git://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"1.3.24","description":"A tiny JavaScript library for drawing heatmaps with Canvas","directories":{},"jshintConfig":{"strict":true,"quotmark":"single","trailing":true}},"0.1.0":{"name":"simpleheat","version":"0.1.0","keywords":["heatmap","canvas","visualization"],"author":{"name":"Vladimir Agafonkin"},"_id":"simpleheat@0.1.0","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"homepage":"https://github.com/mourner/simpleheat","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"1a728bd23d1e2e165c6d9dfb63171ae2760f951a","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-0.1.0.tgz","integrity":"sha512-+sIe3tNXX317TpT23uSrb3OKCiVzRVm/cuhqpU6sPXXIJl0OjWa9ccxKo5KmC4gNX5fPp9PuHQ4Tzs5POCNfQA==","signatures":[{"sig":"MEYCIQCWsKOOOtWF2a9MzPWpIZv1Zj+nTENlZ0pFly7ZjVdY0AIhAIYWXhfQEirHIVzf2qETKz0hMPNRCtIVmF08RY4vdGQY","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simpleheat.js","_from":".","scripts":{"test":"jshint ."},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"repository":{"url":"git://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"1.3.24","description":"A tiny JavaScript library for drawing heatmaps with Canvas","directories":{},"jshintConfig":{"strict":true,"quotmark":"single","trailing":true}},"0.1.1":{"name":"simpleheat","version":"0.1.1","keywords":["heatmap","canvas","visualization"],"author":{"name":"Vladimir Agafonkin"},"_id":"simpleheat@0.1.1","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"homepage":"https://github.com/mourner/simpleheat","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"91087d9c43477b4973a0583c79cb5d4184ab8291","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-0.1.1.tgz","integrity":"sha512-ocFg3oGkSnWKXBE6xGfDrZqHbS9zQOuea9Ze5glDb4vXiBucDSdn/joABXZiO7W88pOabSF6rmtzQp6tUy1VgA==","signatures":[{"sig":"MEUCIQC/AB6vV7pYAW4VLl2zBwew1Ou7xLsJJF6/VEw44PsZ3wIgaGghpfMWc0fcLQgrs49sce7rhoR8lh/MROwPq79V97k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simpleheat.js","_from":".","scripts":{"test":"jshint ."},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"repository":{"url":"git://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"1.3.24","description":"A tiny JavaScript library for drawing heatmaps with Canvas","directories":{},"jshintConfig":{"strict":true,"quotmark":"single","trailing":true}},"0.2.0":{"name":"simpleheat","version":"0.2.0","keywords":["heatmap","canvas","visualization"],"author":{"name":"Vladimir Agafonkin"},"_id":"simpleheat@0.2.0","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"homepage":"https://github.com/mourner/simpleheat","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"43eb9f8ca44ffe4691208225d17d73bcdcb61158","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-0.2.0.tgz","integrity":"sha512-0e4sfQQmUGrSDpnytGaz2Kj/iLCz4CQZ7JxjITVpX9fX5SpFk8Ue/628Kxy2wSN4DkBaRsSnlZoAaSau5wEkzA==","signatures":[{"sig":"MEYCIQCojNtYDmyTX4XRMTAV6x6V0dfNviEbjzCqwj4dlZc+xwIhAPv2/wBRVNLFGs1kA9nF9ua+LVubDg/CUc20ZMsOM9l5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simpleheat.js","_from":".","scripts":{"test":"jshint ."},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"repository":{"url":"git://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"1.3.24","description":"A tiny JavaScript library for drawing heatmaps with Canvas","jshintConfig":{"strict":true,"quotmark":"single","trailing":true},"directories":{}},"0.3.0":{"name":"simpleheat","version":"0.3.0","keywords":["heatmap","canvas","visualization"],"author":{"name":"Vladimir Agafonkin"},"license":"BSD-2-Clause","_id":"simpleheat@0.3.0","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"homepage":"https://github.com/mourner/simpleheat","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"0c385062e290e06f66d0d5efe5b3dad53971f438","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-0.3.0.tgz","integrity":"sha512-hAiZyUQz16CmyBgIJEOkJBCEzMgSruN0wDbPfDHbqnB7p0uFQ8uyaL1GizrJDzQUTtxYSTmpUMIODeRq32K/Mw==","signatures":[{"sig":"MEYCIQDil47T/eUsPSN7j3JREZVEVyQqAhkIHrbCZGDlXpPpXgIhAJZBtcMtq7YZHmhFgihaPo3LDThSoYtuPkgNNnEFALW0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simpleheat.js","_from":".","_shasum":"0c385062e290e06f66d0d5efe5b3dad53971f438","gitHead":"b2117b41678f1b61a882c292057e4bc87fb676ff","scripts":{"test":"eslint simpleheat.js"},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"repository":{"url":"git://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"2.14.4","description":"A tiny JavaScript library for drawing heatmaps with Canvas","_nodeVersion":"0.12.7","eslintConfig":{"rules":{"new-cap":0},"extends":"mourner"},"devDependencies":{"eslint":"^1.7.3","eslint-config-mourner":"^1.0.1"},"directories":{}},"0.4.0":{"name":"simpleheat","version":"0.4.0","keywords":["heatmap","canvas","visualization"],"author":{"name":"Vladimir Agafonkin"},"license":"BSD-2-Clause","_id":"simpleheat@0.4.0","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"homepage":"https://github.com/mourner/simpleheat","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"e2de8d4548fcf1a6960b636bfa939d05bcd49a7b","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-0.4.0.tgz","integrity":"sha512-tdg3I1NvzMdPKscWBrHbF0LBf+VWuBBazzGUPtFJjG5Q12VQX6gPY8jLy9hx5CbgAIVc5nfnePwJvAYK6z1rAA==","signatures":[{"sig":"MEQCIH2bCVRWrSIIAiRzCBYRK1dpK1bSmFCRbt7w0ArZWh5vAiBGN6FxzxUk0FLBv/eqcKHdA1Ai5yKY8pro4iYgiQ1/0A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"simpleheat.js","_from":".","_shasum":"e2de8d4548fcf1a6960b636bfa939d05bcd49a7b","gitHead":"2332b1e22c96e3e9d90827bc07952d03abd26b85","scripts":{"test":"eslint simpleheat.js"},"_npmUser":{"name":"mourner","email":"agafonkin@gmail.com"},"repository":{"url":"git://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"4.0.5","description":"A tiny JavaScript library for drawing heatmaps with Canvas","_nodeVersion":"7.4.0","eslintConfig":{"rules":{"new-cap":0,"consistent-return":0},"extends":"mourner"},"devDependencies":{"eslint":"^3.13.1","eslint-config-mourner":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/simpleheat-0.4.0.tgz_1484844478956_0.7843206638935953","host":"packages-12-west.internal.npmjs.com"},"directories":{}},"1.0.0":{"_id":"simpleheat@1.0.0","bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"dist":{"shasum":"300f98011d71931e21c789efea1ea25eca26a8ce","tarball":"https://registry.npmjs.org/simpleheat/-/simpleheat-1.0.0.tgz","integrity":"sha512-hCGl1lj+IR+CymAouYf5ZQ7NguSQq+w1PWu1WvHgZWkdzmyS/xbN1T2TpwlSC8nEDDK2JRVPcdgV0a6652aP2Q==","fileCount":5,"unpackedSize":10447,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/simpleheat@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIE/DDDMMVwIUkCatRAaD++3ZV2A3y/lMMr0sNPhwAfqKAiEAspozNzWnZCNVNjHEeH4y/NkCWHHLMOyspHh97JAIYqs="}]},"name":"simpleheat","type":"module","author":{"name":"Volodymyr Agafonkin"},"exports":"./simpleheat.js","gitHead":"41e5ffc900aebc3870ff9ca9ffbd2dbb7f012155","license":"BSD-2-Clause","scripts":{"lint":"eslint simpleheat.js","test":"npm run lint && npm run typecheck","build":"tsc","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"version":"1.0.0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"3a35ba69-4ea3-4849-9448-e3725db46ab6"},"approver":{"name":"mourner","email":"agafonkin@gmail.com"}},"homepage":"https://github.com/mourner/simpleheat","keywords":["heatmap","canvas","visualization"],"repository":{"url":"git+https://github.com/mourner/simpleheat.git","type":"git"},"_npmVersion":"11.19.0","description":"A tiny JavaScript library for drawing heatmaps with Canvas","directories":{},"maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"_nodeVersion":"24.21.0","devDependencies":{"eslint":"^10.13.0","typescript":"^7.0.2","eslint-config-mourner":"^5.0.1"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/simpleheat_1.0.0_1793004247064_0.5374300215347128"},"_hasShrinkwrap":false}},"time":{"created":"2014-01-28T14:31:29.911Z","modified":"2026-10-26T08:44:07.492Z","0.0.1":"2014-01-28T14:31:29.911Z","0.1.0":"2014-01-28T17:22:18.189Z","0.1.1":"2014-01-28T21:26:29.868Z","0.2.0":"2014-01-31T16:01:50.852Z","0.3.0":"2015-10-26T15:50:40.429Z","0.4.0":"2017-01-19T16:48:01.002Z","1.0.0":"2026-10-26T08:44:07.139Z"},"bugs":{"url":"https://github.com/mourner/simpleheat/issues"},"author":{"name":"Volodymyr Agafonkin"},"license":"BSD-2-Clause","homepage":"https://github.com/mourner/simpleheat","keywords":["heatmap","canvas","visualization"],"repository":{"url":"git+https://github.com/mourner/simpleheat.git","type":"git"},"description":"A tiny JavaScript library for drawing heatmaps with Canvas","maintainers":[{"name":"mourner","email":"agafonkin@gmail.com"}],"readme":"# simpleheat\n\nA super-tiny JavaScript library for drawing heatmaps with Canvas.\nInspired by [heatmap.js](https://github.com/pa7/heatmap.js), but with focus on simplicity and performance.\n\nPowers [Leaflet.heat](https://github.com/Leaflet/Leaflet.heat), a heatmap plugin for [Leaflet](https://leafletjs.com).\n\n```js\nimport SimpleHeat from 'simpleheat';\n\nnew SimpleHeat('canvas').data(data).draw();\n```\n\n[![Build Status](https://github.com/mourner/simpleheat/actions/workflows/ci.yml/badge.svg)](https://github.com/mourner/simpleheat/actions) [![Simply Awesome](https://img.shields.io/badge/simply-awesome-brightgreen.svg)](https://github.com/mourner/projects)\n\n## [Demo](https://mourner.github.io/simpleheat/demo)\n\n## Reference\n\n#### Constructor\n\n```js\n// create a simpleheat object given an id or canvas reference\nconst heat = new SimpleHeat(canvas);\n```\n\n#### Data\n\n```js\n// set data of [[x, y, value], ...] format\nheat.data(data);\n\n// set max data value (1 by default)\nheat.max(2.5);\n\n// add a data point\nheat.add([10, 10, 5.3]);\n\n// clear data\nheat.clear();\n```\n\n#### Appearance\n\n```js\n// set point radius and blur radius (25 and 15 by default)\nheat.radius(30, 10);\n\n// set gradient colors as {<stop>: '<color>'}\nheat.gradient({0.4: 'blue', 0.65: 'lime', 1: 'red'});\n```\n\n#### Rendering\n\n```js\n// draw the heatmap with optional minimum point opacity (0.05 by default)\nheat.draw(0.1);\n```\n","readmeFilename":"README.md"}