heatmap-node
Advanced tools
Comparing version 0.0.2 to 0.0.3
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; | ||
}; |
{ | ||
"name": "heatmap-node", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "canvas heat maps for node", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
SPDX disjunction
LicenseSPDX disjunction for an artifact's license information
Found 1 instance in 1 package
8717
187
3