@@ -77,7 +77,7 @@ module.exports = function colorScaleAttrs(context, opts) {
77
77
}
78
78
79
79
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.' :
81
81
'' ;
82
82
83
83
var auto = cLetter + 'auto' ;
@@ -102,11 +102,11 @@ module.exports = function colorScaleAttrs(context, opts) {
102
102
editType : editTypeOverride || 'style' ,
103
103
description : [
104
104
'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 ( ' ' )
110
110
} ;
111
111
112
112
if ( opts . anim ) {
@@ -121,11 +121,10 @@ module.exports = function colorScaleAttrs(context, opts) {
121
121
impliedEdits : autoImpliedEdits ,
122
122
description : [
123
123
'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 ( ' ' )
129
128
} ;
130
129
131
130
attrs [ min ] = {
@@ -134,11 +133,10 @@ module.exports = function colorScaleAttrs(context, opts) {
134
133
editType : editTypeOverride || 'plot' ,
135
134
impliedEdits : minmaxImpliedEdits ,
136
135
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 ( ' ' )
142
140
} ;
143
141
144
142
attrs [ max ] = {
@@ -147,11 +145,10 @@ module.exports = function colorScaleAttrs(context, opts) {
147
145
editType : editTypeOverride || 'plot' ,
148
146
impliedEdits : minmaxImpliedEdits ,
149
147
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 ( ' ' )
155
152
} ;
156
153
157
154
attrs [ mid ] = {
@@ -160,12 +157,11 @@ module.exports = function colorScaleAttrs(context, opts) {
160
157
editType : 'calc' ,
161
158
impliedEdits : autoImpliedEdits ,
162
159
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 ( ' ' )
169
165
} ;
170
166
171
167
attrs . colorscale = {
@@ -174,19 +170,18 @@ module.exports = function colorScaleAttrs(context, opts) {
174
170
dflt : colorscaleDflt ,
175
171
impliedEdits : { autocolorscale : false } ,
176
172
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 ( ' ' )
190
185
} ;
191
186
192
187
attrs . autocolorscale = {
@@ -197,24 +192,22 @@ module.exports = function colorScaleAttrs(context, opts) {
197
192
impliedEdits : { colorscale : undefined } ,
198
193
description : [
199
194
'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 ( ' ' )
206
200
} ;
207
201
208
202
attrs . reversescale = {
209
203
valType : 'boolean' ,
210
204
dflt : false ,
211
205
editType : 'plot' ,
212
206
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 ( ' ' )
218
211
} ;
219
212
220
213
if ( ! noScale ) {
@@ -223,9 +216,8 @@ module.exports = function colorScaleAttrs(context, opts) {
223
216
dflt : showScaleDflt ,
224
217
editType : 'calc' ,
225
218
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 ( ' ' )
229
221
} ;
230
222
231
223
attrs . colorbar = colorbarAttrs ;
0 commit comments