@@ -20,62 +20,62 @@ module.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout
2020 opts = opts || { } ;
2121
2222 // marker.color inherit from line.color (even if line.color is an array)
23- if ( lineColor ) defaultColor = lineColor ;
23+ if ( lineColor ) defaultColor = lineColor ;
2424
2525 coerce ( 'marker.symbol' ) ;
2626 coerce ( 'marker.opacity' , isBubble ? 0.7 : 1 ) ;
2727 coerce ( 'marker.size' ) ;
28- if ( ! opts . noAngle ) {
28+ if ( ! opts . noAngle ) {
2929 coerce ( 'marker.angle' ) ;
30- if ( ! opts . noAngleRef ) {
30+ if ( ! opts . noAngleRef ) {
3131 coerce ( 'marker.angleref' ) ;
3232 }
3333
34- if ( ! opts . noStandOff ) {
34+ if ( ! opts . noStandOff ) {
3535 coerce ( 'marker.standoff' ) ;
3636 }
3737 }
3838
3939 coerce ( 'marker.color' , defaultColor ) ;
40- if ( hasColorscale ( traceIn , 'marker' ) ) {
41- colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.' , cLetter : 'c' } ) ;
40+ if ( hasColorscale ( traceIn , 'marker' ) ) {
41+ colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.' , cLetter : 'c' } ) ;
4242 }
4343
44- if ( ! opts . noSelect ) {
44+ if ( ! opts . noSelect ) {
4545 coerce ( 'selected.marker.color' ) ;
4646 coerce ( 'unselected.marker.color' ) ;
4747 coerce ( 'selected.marker.size' ) ;
4848 coerce ( 'unselected.marker.size' ) ;
4949 }
5050
51- if ( ! opts . noLine ) {
51+ if ( ! opts . noLine ) {
5252 // if there's a line with a different color than the marker, use
5353 // that line color as the default marker line color
5454 // (except when it's an array)
5555 // mostly this is for transparent markers to behave nicely
56- if ( lineColor && ! Array . isArray ( lineColor ) && ( traceOut . marker . color !== lineColor ) ) {
56+ if ( lineColor && ! Array . isArray ( lineColor ) && traceOut . marker . color !== lineColor ) {
5757 defaultMLC = lineColor ;
58- } else if ( isBubble ) defaultMLC = Color . background ;
58+ } else if ( isBubble ) defaultMLC = Color . background ;
5959 else defaultMLC = Color . defaultLine ;
6060
6161 coerce ( 'marker.line.color' , defaultMLC ) ;
62- if ( hasColorscale ( traceIn , 'marker.line' ) ) {
63- colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.line.' , cLetter : 'c' } ) ;
62+ if ( hasColorscale ( traceIn , 'marker.line' ) ) {
63+ colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.line.' , cLetter : 'c' } ) ;
6464 }
6565
6666 coerce ( 'marker.line.width' , isBubble ? 1 : 0 ) ;
6767 coerce ( 'marker.line.dash' ) ;
6868 }
6969
70- if ( isBubble ) {
70+ if ( isBubble ) {
7171 coerce ( 'marker.sizeref' ) ;
7272 coerce ( 'marker.sizemin' ) ;
7373 coerce ( 'marker.sizemode' ) ;
7474 }
7575
76- if ( opts . gradient ) {
76+ if ( opts . gradient ) {
7777 var gradientType = coerce ( 'marker.gradient.type' ) ;
78- if ( gradientType !== 'none' ) {
78+ if ( gradientType !== 'none' ) {
7979 coerce ( 'marker.gradient.color' ) ;
8080 }
8181 }
0 commit comments