Skip to content

Commit f83e287

Browse files
committed
When image's zsmooth is 'fast', only use a real image if it has source
1 parent 03b9ef3 commit f83e287

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: src/traces/image/plot.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +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 = trace.zsmooth === 'fast' || (
30-
supportsPixelatedImage && !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear'
29+
var realImage = (
30+
((trace.zsmooth === 'fast') || (trace.zsmooth === false && supportsPixelatedImage)) &&
31+
!trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear'
3132
);
3233
trace._realImage = realImage;
3334

0 commit comments

Comments
 (0)