@@ -31,7 +31,7 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
3131 var plotGroup = d3 . select ( this ) ;
3232 var cd0 = cd [ 0 ] ;
3333 var trace = cd0 . trace ;
34- var fastImage = supportsPixelatedImage && trace . _isFromSource && compatibleAxis ( xa ) && compatibleAxis ( ya ) ;
34+ var fastImage = supportsPixelatedImage && trace . _hasSource && compatibleAxis ( xa ) && compatibleAxis ( ya ) ;
3535 trace . _fastImage = fastImage ;
3636
3737 var z = cd0 . z ;
@@ -147,9 +147,9 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
147147 . attr ( 'style' , 'image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;' ) ;
148148
149149 var p = new Promise ( function ( resolve ) {
150- if ( trace . _isFromZ ) {
150+ if ( trace . _hasZ ) {
151151 resolve ( ) ;
152- } else if ( trace . _isFromSource ) {
152+ } else if ( trace . _hasSource ) {
153153 // Check if canvas already exists and has the right data
154154 if (
155155 trace . _canvas &&
@@ -185,9 +185,9 @@ module.exports = function plot(gd, plotinfo, cdimage, imageLayer) {
185185 href = trace . source ;
186186 } else {
187187 var canvas ;
188- if ( trace . _isFromZ ) {
188+ if ( trace . _hasZ ) {
189189 canvas = drawMagnifiedPixelsOnCanvas ( function ( i , j ) { return z [ j ] [ i ] ; } ) ;
190- } else if ( trace . _isFromSource ) {
190+ } else if ( trace . _hasSource ) {
191191 var context = trace . _canvas . el . getContext ( '2d' ) ;
192192 var data = context . getImageData ( 0 , 0 , w , h ) . data ;
193193 canvas = drawMagnifiedPixelsOnCanvas ( function ( i , j ) {
0 commit comments