@@ -80,7 +80,11 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
8080 // If there's a fill color, use it at full opacity for the line color
8181 var lineDfltColor = traceOut . fillcolor ? addOpacity ( traceOut . fillcolor , 1 ) : defaultColor ;
8282
83- handleStyleDefaults ( traceIn , traceOut , coerce , layout , lineDfltColor , 2 ) ;
83+ handleStyleDefaults ( traceIn , traceOut , coerce , layout , {
84+ hasHover : false ,
85+ defaultColor : lineDfltColor ,
86+ defaultWidth : 2
87+ } ) ;
8488
8589 if ( contours . operation === '=' ) {
8690 coerce ( 'line.color' , defaultColor ) ;
@@ -108,8 +112,8 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
108112 delete traceOut . line . maxcolor ;
109113 }
110114
111- // TODO: These shouldb e deleted in accordance with toolpanel convention, but
112- // we can't becuase we require them so that it magically makes the contour
115+ // TODO: These should be deleted in accordance with toolpanel convention, but
116+ // we can't because we require them so that it magically makes the contour
113117 // parts of the code happy:
114118 // delete traceOut.contours.start;
115119 // delete traceOut.contours.end;
@@ -141,7 +145,7 @@ module.exports = function supplyDefaults(traceIn, traceOut, defaultColor, layout
141145 coerce ( 'ncontours' ) ;
142146 }
143147
144- handleStyleDefaults ( traceIn , traceOut , coerce , layout ) ;
148+ handleStyleDefaults ( traceIn , traceOut , coerce , layout , { hasHover : false } ) ;
145149
146150 delete traceOut . value ;
147151 delete traceOut . operation ;
0 commit comments