@@ -16,7 +16,7 @@ var colorscaleDefaults = require('../../components/colorscale/defaults');
16
16
var subTypes = require ( './subtypes' ) ;
17
17
18
18
19
- module . exports = function markerDefaults ( traceIn , traceOut , defaultColor , layout , coerce ) {
19
+ module . exports = function markerDefaults ( traceIn , traceOut , defaultColor , layout , coerce , opts ) {
20
20
var isBubble = subTypes . isBubble ( traceIn ) ,
21
21
lineColor = ( traceIn . line || { } ) . color ,
22
22
defaultMLC ;
@@ -33,22 +33,24 @@ module.exports = function markerDefaults(traceIn, traceOut, defaultColor, layout
33
33
colorscaleDefaults ( traceIn , traceOut , layout , coerce , { prefix : 'marker.' , cLetter : 'c' } ) ;
34
34
}
35
35
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 ) ;
42
53
}
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 ) ;
52
54
53
55
if ( isBubble ) {
54
56
coerce ( 'marker.sizeref' ) ;
0 commit comments