@@ -16,7 +16,7 @@ var colorscaleDefaults = require('../../components/colorscale/defaults');
1616var subTypes = require ( './subtypes' ) ;
1717
1818
19- module . exports = function markerDefaults ( traceIn , traceOut , defaultColor , layout , coerce ) {
19+ module . exports = function markerDefaults ( traceIn , traceOut , defaultColor , layout , coerce , opts ) {
2020 var isBubble = subTypes . isBubble ( traceIn ) ,
2121 lineColor = ( traceIn . line || { } ) . color ,
2222 defaultMLC ;
@@ -33,22 +33,24 @@ module.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout
3333 colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.' , cLetter : 'c' } ) ;
3434 }
3535
36- // if there's a line with a different color than the marker, use
37- // that line color as the default marker line color
38- // (except when it's an array)
39- // mostly this is for transparent markers to behave nicely
40- if ( lineColor && ! Array . isArray ( lineColor ) && ( traceOut . marker . color !== lineColor ) ) {
41- defaultMLC = lineColor ;
36+ if ( ! ( opts || { } ) . noLine ) {
37+ // if there's a line with a different color than the marker, use
38+ // that line color as the default marker line color
39+ // (except when it's an array)
40+ // mostly this is for transparent markers to behave nicely
41+ if ( lineColor && ! Array . isArray ( lineColor ) && ( traceOut . marker . color !== lineColor ) ) {
42+ defaultMLC = lineColor ;
43+ }
44+ else if ( isBubble ) defaultMLC = Color . background ;
45+ else defaultMLC = Color . defaultLine ;
46+
47+ coerce ( 'marker.line.color' , defaultMLC ) ;
48+ if ( hasColorscale ( traceIn , 'marker.line' ) ) {
49+ colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.line.' , cLetter : 'c' } ) ;
50+ }
51+
52+ coerce ( 'marker.line.width' , isBubble ? 1 : 0 ) ;
4253 }
43- else if ( isBubble ) defaultMLC = Color . background ;
44- else defaultMLC = Color . defaultLine ;
45-
46- coerce ( 'marker.line.color' , defaultMLC ) ;
47- if ( hasColorscale ( traceIn , 'marker.line' ) ) {
48- colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.line.' , cLetter : 'c' } ) ;
49- }
50-
51- coerce ( 'marker.line.width' , isBubble ? 1 : 0 ) ;
5254
5355 if ( isBubble ) {
5456 coerce ( 'marker.sizeref' ) ;
0 commit comments