@@ -40,9 +40,9 @@ module.exports = function colorScaleDefaults(traceIn, traceOut, layout, coerce,
40
40
41
41
// handles both the trace case (autocolorscale is false by default) and
42
42
// the marker and marker.line case (autocolorscale is true by default)
43
- var autoColorscaleDftl ;
44
- if ( sclIn !== undefined ) autoColorscaleDftl = ! isValidScale ( sclIn ) ;
45
- coerce ( prefix + 'autocolorscale' , autoColorscaleDftl ) ;
43
+ var autoColorscaleDflt ;
44
+ if ( sclIn !== undefined ) autoColorscaleDflt = ! isValidScale ( sclIn ) ;
45
+ coerce ( prefix + 'autocolorscale' , autoColorscaleDflt ) ;
46
46
var sclOut = coerce ( prefix + 'colorscale' ) ;
47
47
48
48
// reversescale is handled at the containerOut level
@@ -53,12 +53,12 @@ module.exports = function colorScaleDefaults(traceIn, traceOut, layout, coerce,
53
53
if ( prefix === 'marker.line.' ) return ;
54
54
55
55
if ( ! opts . noScale ) {
56
- // handle both the trace case where the dflt is listed in attributes and
56
+ // handles both the trace case where the dflt is listed in attributes and
57
57
// the marker case where the dflt is determined by hasColorbar
58
- var showScaleDftl ;
59
- if ( prefix ) showScaleDftl = hasColorbar ( containerIn ) ;
58
+ var showScaleDflt ;
59
+ if ( prefix ) showScaleDflt = hasColorbar ( containerIn ) ;
60
60
61
- var showScale = coerce ( prefix + 'showscale' , showScaleDftl ) ;
61
+ var showScale = coerce ( prefix + 'showscale' , showScaleDflt ) ;
62
62
if ( showScale ) colorbarDefaults ( containerIn , containerOut , layout ) ;
63
63
}
64
64
} ;
0 commit comments