Skip to content

Commit 8743c6a

Browse files
committed
fixup download image when zsmooth is set to fast
1 parent 199418b commit 8743c6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/traces/image/plot.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
2626
var plotGroup = d3.select(this);
2727
var cd0 = cd[0];
2828
var trace = cd0.trace;
29-
var realImage = supportsPixelatedImage && !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear';
29+
var realImage = trace.zsmooth === 'fast' || (
30+
supportsPixelatedImage && !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear'
31+
);
3032
trace._realImage = realImage;
3133

3234
var z = cd0.z;

0 commit comments

Comments
 (0)