@@ -77,7 +77,7 @@ module.exports = function colorScaleAttrs(context, opts) {
7777 }
7878
7979 var effectDesc = onlyIfNumerical ?
80- ' Has an effect only if ' + colorAttrFull + 'is set to a numerical array.' :
80+ ' Has an effect only if ' + colorAttrFull + ' is set to a numerical array.' :
8181 '' ;
8282
8383 var auto = cLetter + 'auto' ;
@@ -102,11 +102,11 @@ module.exports = function colorScaleAttrs(context, opts) {
102102 editType : editTypeOverride || 'style' ,
103103 description : [
104104 'Sets the' , context , 'color.' ,
105- ' It accepts either a specific color' ,
106- ' or an array of numbers that are mapped to the colorscale' ,
107- ' relative to the max and min values of the array or relative to' ,
108- ' ' + minmaxFull + ' if set.'
109- ] . join ( '' )
105+ 'It accepts either a specific color' ,
106+ 'or an array of numbers that are mapped to the colorscale' ,
107+ 'relative to the max and min values of the array or relative to' ,
108+ minmaxFull , ' if set.'
109+ ] . join ( ' ' )
110110 } ;
111111
112112 if ( opts . anim ) {
@@ -121,11 +121,10 @@ module.exports = function colorScaleAttrs(context, opts) {
121121 impliedEdits : autoImpliedEdits ,
122122 description : [
123123 'Determines whether or not the color domain is computed' ,
124- ' with respect to the input data (here ' + colorAttrFull + ') or the bounds set in' ,
125- ' ' , minmaxFull ,
126- ' ' , effectDesc ,
127- ' Defaults to `false` when ' , minmaxFull , ' are set by the user.'
128- ] . join ( '' )
124+ 'with respect to the input data (here ' + colorAttrFull + ') or the bounds set in' ,
125+ minmaxFull + effectDesc ,
126+ 'Defaults to `false` when' , minmaxFull , 'are set by the user.'
127+ ] . join ( ' ' )
129128 } ;
130129
131130 attrs [ min ] = {
@@ -134,11 +133,10 @@ module.exports = function colorScaleAttrs(context, opts) {
134133 editType : editTypeOverride || 'plot' ,
135134 impliedEdits : minmaxImpliedEdits ,
136135 description : [
137- 'Sets the lower bound of the color domain.' ,
138- effectDesc ,
139- ' Value should have the same units as ' , colorAttrFull ,
140- ' and if set, ' , maxFull , ' must be set as well.'
141- ] . join ( '' )
136+ 'Sets the lower bound of the color domain.' + effectDesc ,
137+ 'Value should have the same units as' , colorAttrFull ,
138+ 'and if set,' , maxFull , 'must be set as well.'
139+ ] . join ( ' ' )
142140 } ;
143141
144142 attrs [ max ] = {
@@ -147,11 +145,10 @@ module.exports = function colorScaleAttrs(context, opts) {
147145 editType : editTypeOverride || 'plot' ,
148146 impliedEdits : minmaxImpliedEdits ,
149147 description : [
150- 'Sets the upper bound of the color domain.' ,
151- effectDesc ,
152- ' Value should have the same units as ' , colorAttrFull ,
153- ' and if set, ' , minFull , ' must be set as well.'
154- ] . join ( '' )
148+ 'Sets the upper bound of the color domain.' + effectDesc ,
149+ 'Value should have the same units as' , colorAttrFull ,
150+ 'and if set,' , minFull , 'must be set as well.'
151+ ] . join ( ' ' )
155152 } ;
156153
157154 attrs [ mid ] = {
@@ -160,12 +157,11 @@ module.exports = function colorScaleAttrs(context, opts) {
160157 editType : 'calc' ,
161158 impliedEdits : autoImpliedEdits ,
162159 description : [
163- 'Sets the mid-point of the color domain by scaling ' , minFull ,
164- ' and/or ' , maxFull , ' to be equidistant to this point.' ,
165- effectDesc ,
166- ' Value should have the same units as ' , colorAttrFull , '. ' ,
167- 'Has no effect when ' , autoFull , ' is `false`.'
168- ] . join ( '' )
160+ 'Sets the mid-point of the color domain by scaling' , minFull ,
161+ 'and/or' , maxFull , 'to be equidistant to this point.' + effectDesc ,
162+ 'Value should have the same units as' , colorAttrFull + '.' ,
163+ 'Has no effect when' , autoFull , 'is `false`.'
164+ ] . join ( ' ' )
169165 } ;
170166
171167 attrs . colorscale = {
@@ -174,19 +170,18 @@ module.exports = function colorScaleAttrs(context, opts) {
174170 dflt : colorscaleDflt ,
175171 impliedEdits : { autocolorscale : false } ,
176172 description : [
177- 'Sets the colorscale.' ,
178- effectDesc ,
179- ' The colorscale must be an array containing' ,
180- ' arrays mapping a normalized value to an' ,
181- ' rgb, rgba, hex, hsl, hsv, or named color string.' ,
182- ' At minimum, a mapping for the lowest (0) and highest (1)' ,
183- ' values are required. For example,' ,
184- ' `[[0, \'rgb(0,0,255)\'], [1, \'rgb(255,0,0)\']]`.' ,
185- ' To control the bounds of the colorscale in color space,' ,
186- ' use' , minmaxFull , '.' ,
187- ' Alternatively, `colorscale` may be a palette name string' ,
188- ' of the following list: ' + paletteStr + '.'
189- ] . join ( '' )
173+ 'Sets the colorscale.' + effectDesc ,
174+ 'The colorscale must be an array containing' ,
175+ 'arrays mapping a normalized value to an' ,
176+ 'rgb, rgba, hex, hsl, hsv, or named color string.' ,
177+ 'At minimum, a mapping for the lowest (0) and highest (1)' ,
178+ 'values are required. For example,' ,
179+ '`[[0, \'rgb(0,0,255)\'], [1, \'rgb(255,0,0)\']]`.' ,
180+ 'To control the bounds of the colorscale in color space,' ,
181+ 'use' , minmaxFull + '.' ,
182+ 'Alternatively, `colorscale` may be a palette name string' ,
183+ 'of the following list: ' + paletteStr + '.'
184+ ] . join ( ' ' )
190185 } ;
191186
192187 attrs . autocolorscale = {
@@ -197,24 +192,22 @@ module.exports = function colorScaleAttrs(context, opts) {
197192 impliedEdits : { colorscale : undefined } ,
198193 description : [
199194 'Determines whether the colorscale is a default palette (`autocolorscale: true`)' ,
200- ' or the palette determined by ' , code ( contextHead + 'colorscale' ) , '.' ,
201- effectDesc ,
202- ' In case `colorscale` is unspecified or `autocolorscale` is true, the default ' ,
203- ' palette will be chosen according to whether numbers in the `color` array are' ,
204- ' all positive, all negative or mixed.'
205- ] . join ( '' )
195+ 'or the palette determined by' , code ( contextHead + 'colorscale' ) + '.' + effectDesc ,
196+ 'In case `colorscale` is unspecified or `autocolorscale` is true, the default' ,
197+ 'palette will be chosen according to whether numbers in the `color` array are' ,
198+ 'all positive, all negative or mixed.'
199+ ] . join ( ' ' )
206200 } ;
207201
208202 attrs . reversescale = {
209203 valType : 'boolean' ,
210204 dflt : false ,
211205 editType : 'plot' ,
212206 description : [
213- 'Reverses the color mapping if true.' ,
214- effectDesc ,
215- ' If true, ' , minFull , ' will correspond to the last color' ,
216- ' in the array and ' , maxFull , ' will correspond to the first color.'
217- ] . join ( '' )
207+ 'Reverses the color mapping if true.' + effectDesc ,
208+ 'If true,' , minFull , 'will correspond to the last color' ,
209+ 'in the array and' , maxFull , 'will correspond to the first color.'
210+ ] . join ( ' ' )
218211 } ;
219212
220213 if ( ! noScale ) {
@@ -223,9 +216,8 @@ module.exports = function colorScaleAttrs(context, opts) {
223216 dflt : showScaleDflt ,
224217 editType : 'calc' ,
225218 description : [
226- 'Determines whether or not a colorbar is displayed for this trace.' ,
227- effectDesc
228- ] . join ( '' )
219+ 'Determines whether or not a colorbar is displayed for this trace.' + effectDesc
220+ ] . join ( ' ' )
229221 } ;
230222
231223 attrs . colorbar = colorbarAttrs ;
0 commit comments