@@ -99,7 +99,7 @@ proto.update = function(fullTrace, calcTrace) {
99
99
100
100
// pass on fill information
101
101
if ( fullTrace . contours . coloring === 'fill' ) {
102
- colorOptions = convertColorscale ( fullTrace , true ) ;
102
+ colorOptions = convertColorScale ( fullTrace , { fill : true } ) ;
103
103
this . contourOptions . levels = colorOptions . levels . slice ( 1 ) ;
104
104
// though gl-contour2d automatically defaults to a transparent layer for the last
105
105
// band color, it's set manually here in case the gl-contour2 API changes
@@ -108,7 +108,7 @@ proto.update = function(fullTrace, calcTrace) {
108
108
return [ 0.25 , 0.25 , 0.25 , 1.0 ] ;
109
109
} ) ) ;
110
110
} else {
111
- colorOptions = convertColorscale ( fullTrace , false ) ;
111
+ colorOptions = convertColorScale ( fullTrace , { fill : false } ) ;
112
112
this . contourOptions . levels = colorOptions . levels ;
113
113
this . contourOptions . levelColors = colorOptions . levelColors ;
114
114
}
@@ -138,11 +138,12 @@ function flattenZ(zIn, rowLen, colLen) {
138
138
return zOut ;
139
139
}
140
140
141
- function convertColorscale ( fullTrace , fill ) {
141
+ function convertColorScale ( fullTrace , options ) {
142
142
var contours = fullTrace . contours ,
143
143
start = contours . start ,
144
144
end = contours . end ,
145
- cs = contours . size || 1 ;
145
+ cs = contours . size || 1 ,
146
+ fill = options . fill ;
146
147
147
148
var colorMap = makeColorMap ( fullTrace ) ;
148
149
0 commit comments