Socket
Socket
Sign inDemoInstall

heatmap

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heatmap - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

10

index.js

@@ -70,8 +70,12 @@ var convert = require('color-convert');

Heat.prototype.addPoint = function (x, y, radius) {
Heat.prototype.addPoint = function (x, y, params) {
var ctx = this.alphaCanvas.getContext('2d');
if (!radius) radius = this.radius;
if (typeof params === 'number') {
params = { radius : params };
}
if (!params) params = {};
var radius = params.radius || this.radius;
var g = ctx.createRadialGradient(x, y, 0, x, y, radius);
var a = 1 / 10;
var a = params.weight || (1 / 10);

@@ -78,0 +82,0 @@ g.addColorStop(0, 'rgba(255,255,255,' + a + ')');

{
"name" : "heatmap",
"version" : "0.0.2",
"version" : "0.0.3",
"description" : "canvas heat maps for node and the browser",

@@ -5,0 +5,0 @@ "main" : "index.js",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc