Skip to content

Commit

Permalink
Fix black
Browse files Browse the repository at this point in the history
  • Loading branch information
cavenel committed Mar 30, 2023
1 parent 5feefe8 commit ecd4ac9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tissuumaps/static/js/utils/glUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,8 @@ glUtils._updateColorbarCanvas = function(resolution) {
const r = Math.floor(colorscaleData[4 * index + 0]);
const g = Math.floor(colorscaleData[4 * index + 1]);
const b = Math.floor(colorscaleData[4 * index + 2]);
gradient.addColorStop(Math.min(1,normalized), "rgb(" + r + "," + g + "," + b + ")");
gradient.addColorStop(Math.min(1,normalized
), "rgb(" + r + "," + g + "," + b + ")");
}
// Draw colorbar (with outline)
ctx.fillStyle = gradient;
Expand Down

0 comments on commit ecd4ac9

Please sign in to comment.