Skip to content

Commit dab1412

Browse files
committed
Add willReadFrequently to 2d canvas contexts to heatmap
1 parent 915a52b commit dab1412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/heatmap/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ module.exports = function(gd, plotinfo, cdheatmaps, heatmapLayer) {
162162
var canvas = document.createElement('canvas');
163163
canvas.width = canvasW;
164164
canvas.height = canvasH;
165-
var context = canvas.getContext('2d');
165+
var context = canvas.getContext('2d', {willReadFrequently: true});
166166

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

0 commit comments

Comments
 (0)