Socket
Socket
Sign inDemoInstall

heatmap-node

Package Overview
Dependencies
66
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

blob.js

20

index.js

@@ -158,1 +158,21 @@ var convert = require("color-convert");

};
Heat.prototype.addTimestamp = async function (day, time) {
var width = this.canvas.width;
var height = this.canvas.height;
var ctx = this.backgroundCanvas.getContext("2d");
const timeWidth = ctx.measureText(time).width;
ctx.textAlign = "center";
ctx.fillStyle = "#fff";
ctx.strokeStyle = "black";
ctx.font = "bold 13pt Helveric";
ctx.strokeText(time, width - timeWidth / 2 - 150, 570);
ctx.fillText(time, width - timeWidth / 2 - 150, 570);
ctx.strokeText(day, 200, 570);
ctx.fillText(day, 200, 570);
return this;
};

2

package.json
{
"name": "heatmap-node",
"version": "0.0.2",
"version": "0.0.3",
"description": "canvas heat maps for node",

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc