Skip to content

Commit

Permalink
Merge pull request #6741 from bebeal/addWillReadFrequently
Browse files Browse the repository at this point in the history
Add willReadFrequently to 2d canvas contexts to heatmap
  • Loading branch information
archmoj authored Oct 4, 2023
2 parents d828853 + dab1412 commit 96254ca
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 96254ca

Please sign in to comment.