Skip to content

Commit 9b12d3e

Browse files
committed
move makeFillcolorAttr to a file
1 parent 34759f3 commit 9b12d3e

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

src/traces/scatter/attributes.js

+1-15
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,7 @@ var constants = require('./constants');
1313

1414
var extendFlat = require('../../lib/extend').extendFlat;
1515

16-
var makeFillcolorAttr = function(hasFillgradient) {
17-
return {
18-
valType: 'color',
19-
editType: 'style',
20-
anim: true,
21-
description: [
22-
'Sets the fill color.',
23-
'Defaults to a half-transparent variant of the line color,',
24-
'marker color, or marker line color, whichever is available.',
25-
hasFillgradient ?
26-
'If fillgradient is specified, fillcolor is ignored except for setting the background color of the hover label, if any.' :
27-
''
28-
].join(' ')
29-
};
30-
}
16+
var makeFillcolorAttr = require('./fillcolor_attribute');
3117

3218
function axisPeriod(axis) {
3319
return {
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict';
2+
3+
module.exports = function makeFillcolorAttr(hasFillgradient) {
4+
return {
5+
valType: 'color',
6+
editType: 'style',
7+
anim: true,
8+
description: [
9+
'Sets the fill color.',
10+
'Defaults to a half-transparent variant of the line color,',
11+
'marker color, or marker line color, whichever is available.',
12+
hasFillgradient ?
13+
'If fillgradient is specified, fillcolor is ignored except for setting the background color of the hover label, if any.' :
14+
''
15+
].join(' ')
16+
};
17+
};

0 commit comments

Comments
 (0)