We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a67f6f commit 3581c87Copy full SHA for 3581c87
src/traces/heatmap/plot.js
@@ -409,10 +409,7 @@ function findInterp(pixel, pixArray) {
409
}
410
411
function findInterpFromCenters(pixel, centerPixArray) {
412
- // if(pixel <= centerPixArray[0]) return {bin0: 0, bin1: 0, frac: 0};
413
var maxBin = centerPixArray.length - 1;
414
- // if(pixel >= centerPixArray[lastCenter]) return {bin0: lastCenter, bin1: lastCenter, frac: 0};
415
-
416
var bin = Lib.constrain(Lib.findBin(pixel, centerPixArray), 0, maxBin);
417
var pix0 = centerPixArray[bin];
418
var pix1 = centerPixArray[bin + 1];
0 commit comments