9
9
10
10
'use strict' ;
11
11
12
+ var Color = require ( '../../components/color' ) ;
12
13
var colorscaleAttrs = require ( '../../components/colorscale/attributes' ) ;
13
14
var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
14
15
@@ -19,8 +20,12 @@ function makeContourProjAttr(axLetter) {
19
20
role : 'info' ,
20
21
dflt : false ,
21
22
description : [
22
- 'Sets whether or not the dynamic contours are projected' ,
23
- 'along the' , axLetter , 'axis.'
23
+ 'Determines whether or not these contour lines are projected' ,
24
+ 'on the' , axLetter , 'axis walls.' ,
25
+ 'If `highlight` is set to *true* (the default), the projected' ,
26
+ 'lines are shown on hover.' ,
27
+ 'If `show` is set to *true*, the projected lines are shown' ,
28
+ 'in permanence.'
24
29
] . join ( ' ' )
25
30
} ;
26
31
}
@@ -32,8 +37,8 @@ function makeContourAttr(axLetter) {
32
37
role : 'info' ,
33
38
dflt : false ,
34
39
description : [
35
- 'Sets whether or not dynamic contours are shown along the' ,
36
- axLetter , 'axis '
40
+ 'Determines whether or not contour lines about the' , axLetter ,
41
+ 'dimension are drawn. '
37
42
] . join ( ' ' )
38
43
} ,
39
44
project : {
@@ -44,36 +49,49 @@ function makeContourAttr(axLetter) {
44
49
color : {
45
50
valType : 'color' ,
46
51
role : 'style' ,
47
- dflt : '#000'
52
+ dflt : Color . defaultLine ,
53
+ description : 'Sets the color of the contour lines.'
48
54
} ,
49
55
usecolormap : {
50
56
valType : 'boolean' ,
51
57
role : 'info' ,
52
- dflt : false
58
+ dflt : false ,
59
+ description : [
60
+ 'An alternate to *color*.' ,
61
+ 'Determines whether or not the contour lines are colored using' ,
62
+ 'the trace *colorscale*.'
63
+ ] . join ( ' ' )
53
64
} ,
54
65
width : {
55
66
valType : 'number' ,
56
67
role : 'style' ,
57
68
min : 1 ,
58
69
max : 16 ,
59
- dflt : 2
70
+ dflt : 2 ,
71
+ description : 'Sets the width of the contour lines.'
60
72
} ,
61
73
highlight : {
62
74
valType : 'boolean' ,
63
75
role : 'info' ,
64
- dflt : false
76
+ dflt : true ,
77
+ description : [
78
+ 'Determines whether or not contour lines about the' , axLetter ,
79
+ 'dimension are highlighted on hover.'
80
+ ] . join ( ' ' )
65
81
} ,
66
- highlightColor : {
82
+ highlightcolor : {
67
83
valType : 'color' ,
68
84
role : 'style' ,
69
- dflt : '#000'
85
+ dflt : Color . defaultLine ,
86
+ description : 'Sets the color of the highlighted contour lines.'
70
87
} ,
71
- highlightWidth : {
88
+ highlightwidth : {
72
89
valType : 'number' ,
73
90
role : 'style' ,
74
91
min : 1 ,
75
92
max : 16 ,
76
- dflt : 2
93
+ dflt : 2 ,
94
+ description : 'Sets the width of the highlighted contour lines.'
77
95
}
78
96
} ;
79
97
}
@@ -102,6 +120,7 @@ module.exports = {
102
120
'used for setting a color scale independent of `z`.'
103
121
] . join ( ' ' )
104
122
} ,
123
+
105
124
cauto : colorscaleAttrs . zauto ,
106
125
cmin : colorscaleAttrs . zmin ,
107
126
cmax : colorscaleAttrs . zmax ,
@@ -110,6 +129,7 @@ module.exports = {
110
129
{ dflt : false } ) ,
111
130
reversescale : colorscaleAttrs . reversescale ,
112
131
showscale : colorscaleAttrs . showscale ,
132
+
113
133
contours : {
114
134
x : makeContourAttr ( 'x' ) ,
115
135
y : makeContourAttr ( 'y' ) ,
@@ -118,8 +138,15 @@ module.exports = {
118
138
hidesurface : {
119
139
valType : 'boolean' ,
120
140
role : 'info' ,
121
- dflt : false
141
+ dflt : false ,
142
+ description : [
143
+ 'Determines whether or not a surface is drawn.' ,
144
+ 'For example, set `hidesurface` to *false*' ,
145
+ '`contours.x.show` to *true* and' ,
146
+ '`contours.y.show` to *true* to draw a wire frame plot.'
147
+ ] . join ( ' ' )
122
148
} ,
149
+
123
150
lighting : {
124
151
ambient : {
125
152
valType : 'number' ,
@@ -163,7 +190,8 @@ module.exports = {
163
190
role : 'style' ,
164
191
min : 0 ,
165
192
max : 1 ,
166
- dflt : 1
193
+ dflt : 1 ,
194
+ description : 'Sets the opacity of the surface.'
167
195
} ,
168
196
169
197
_nestedModules : { // nested module coupling
0 commit comments