Permalink
Browse files

docs, bump for addPoint params weight

  • Loading branch information...
1 parent a4a53f9 commit c1800ffb4086dd6ede80843023d6dba80c381c30 @substack committed Aug 27, 2011
Showing with 8 additions and 3 deletions.
  1. +7 −2 README.markdown
  2. +1 −1 package.json
View
@@ -44,11 +44,16 @@ height, or an option object with canvas or width and height fields.
Optionally, you can set the `opts.radius` and `opts.threshold` to control the
rendering a little.
-heat.addPoint(x, y, radius=heat.radius || 20)
----------------------------------------------
+heat.addPoint(x, y, params)
+---------------------------
Add a point to the heatmap with a `radius`.
+`params` can have:
+
+* radius, defaults to heat.radius || 20
+* weight, defaults to 0.1
+
heat.scale(x, y)
----------------
View
@@ -1,6 +1,6 @@
{
"name" : "heatmap",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"description" : "canvas heat maps for node and the browser",
"main" : "index.js",
"directories" : {

0 comments on commit c1800ff

Please sign in to comment.