Skip to content

Commit

Permalink
Add willReadFrequently to 2d canvas contexts to heatmap
Browse files Browse the repository at this point in the history
  • Loading branch information
bebeal committed Sep 30, 2023
1 parent 915a52b commit dab1412
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/traces/heatmap/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
var canvas = document.createElement('canvas');
canvas.width = canvasW;
canvas.height = canvasH;
var context = canvas.getContext('2d');
var context = canvas.getContext('2d', {willReadFrequently: true});

var sclFunc = makeColorScaleFuncFromTrace(trace, {noNumericCheck: true, returnArray: true});

Expand Down

0 comments on commit dab1412

Please sign in to comment.