Skip to content

Commit 2ef4411

Browse files
committed
update only varying fields in merge selection
1 parent 35cd161 commit 2ef4411

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/traces/heatmap/plot.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -373,16 +373,19 @@ function plotOne(gd, plotinfo, cd) {
373373

374374
var image3 = plotgroup.selectAll('image')
375375
.data(cd);
376-
image3.enter().append('svg:image');
377-
image3.exit().remove();
378376

379-
image3.attr({
377+
image3.enter().append('svg:image').attr({
380378
xmlns: xmlnsNamespaces.svg,
381379
'xlink:href': canvas.toDataURL('image/png'),
380+
preserveAspectRatio: 'none'
381+
});
382+
383+
image3.attr({
382384
height: imageHeight,
383385
width: imageWidth,
384386
x: left,
385-
y: top,
386-
preserveAspectRatio: 'none'
387+
y: top
387388
});
389+
390+
image3.exit().remove();
388391
}

0 commit comments

Comments
 (0)