Skip to content

Commit 86e48f8

Browse files
committed
Add default value to setColor
1 parent b1ebcf7 commit 86e48f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/traces/heatmap/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ module.exports = function (gd, plotinfo, cdheatmaps, heatmapLayer) {
200200

201201
var xb, xi, v, row, c;
202202

203-
function setColor(v, pixsize) {
204-
if (v === undefined || pixsize === undefined) return [0, 0, 0, 0];
203+
function setColor(v, pixsize = 0) {
204+
if (v === undefined) return [0, 0, 0, 0];
205205

206206
var c = sclFunc(v);
207207
c[0] = Math.round(c[0]);

0 commit comments

Comments
 (0)