Skip to content

Commit 9315a6e

Browse files
committed
In image traces, export SVG img when zsmooth=fast
1 parent 3a501ef commit 9315a6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/image/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
2020
var xa = plotinfo.xaxis;
2121
var ya = plotinfo.yaxis;
2222

23-
var supportsPixelatedImage = !(unsupportedBrowsers || gd._context._exportedPlot);
23+
var supportsPixelatedImage = !unsupportedBrowsers;
2424

2525
Lib.makeTraceGroups(imageLayer, cdimage, 'im').each(function(cd) {
2626
var plotGroup = d3.select(this);
2727
var cd0 = cd[0];
2828
var trace = cd0.trace;
29-
var fastImage = supportsPixelatedImage && !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear';
29+
var fastImage = supportsPixelatedImage && !(gd._context._exportedPlot && trace.zsmooth !== 'fast') && !trace._hasZ && trace._hasSource && xa.type === 'linear' && ya.type === 'linear';
3030
trace._fastImage = fastImage;
3131

3232
var z = cd0.z;

0 commit comments

Comments
 (0)