@@ -26,8 +26,8 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
26
26
var plotGroup = d3 . select ( this ) ;
27
27
var cd0 = cd [ 0 ] ;
28
28
var trace = cd0 . trace ;
29
- var fastImage = supportsPixelatedImage && ! trace . _hasZ && trace . _hasSource && xa . type === 'linear' && ya . type === 'linear' ;
30
- trace . _fastImage = fastImage ;
29
+ var realImage = supportsPixelatedImage && ! trace . _hasZ && trace . _hasSource && xa . type === 'linear' && ya . type === 'linear' ;
30
+ trace . _realImage = realImage ;
31
31
32
32
var z = cd0 . z ;
33
33
var x0 = cd0 . x0 ;
@@ -73,7 +73,7 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
73
73
}
74
74
75
75
// Reduce image size when zoomed in to save memory
76
- if ( ! fastImage ) {
76
+ if ( ! realImage ) {
77
77
var extra = 0.5 ; // half the axis size
78
78
left = Math . max ( - extra * xa . _length , left ) ;
79
79
right = Math . min ( ( 1 + extra ) * xa . _length , right ) ;
@@ -138,7 +138,7 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
138
138
139
139
var style = ( trace . zsmooth === false ) ? constants . pixelatedStyle : '' ;
140
140
141
- if ( fastImage ) {
141
+ if ( realImage ) {
142
142
var xRange = Lib . simpleMap ( xa . range , xa . r2l ) ;
143
143
var yRange = Lib . simpleMap ( ya . range , ya . r2l ) ;
144
144
@@ -194,7 +194,7 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
194
194
canvas = drawMagnifiedPixelsOnCanvas ( function ( i , j ) { return z [ j ] [ i ] ; } ) ;
195
195
href = canvas . toDataURL ( 'image/png' ) ;
196
196
} else if ( trace . _hasSource ) {
197
- if ( fastImage ) {
197
+ if ( realImage ) {
198
198
href = trace . source ;
199
199
} else {
200
200
var context = trace . _canvas . el . getContext ( '2d' ) ;
0 commit comments