99
1010'use strict' ;
1111
12+ var Color = require ( '../../components/color' ) ;
1213var colorscaleAttrs = require ( '../../components/colorscale/attributes' ) ;
1314var extendFlat = require ( '../../lib/extend' ) . extendFlat ;
1415
@@ -19,8 +20,12 @@ function makeContourProjAttr(axLetter) {
1920 role : 'info' ,
2021 dflt : false ,
2122 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.'
2429 ] . join ( ' ' )
2530 } ;
2631}
@@ -32,8 +37,8 @@ function makeContourAttr(axLetter) {
3237 role : 'info' ,
3338 dflt : false ,
3439 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. '
3742 ] . join ( ' ' )
3843 } ,
3944 project : {
@@ -44,36 +49,49 @@ function makeContourAttr(axLetter) {
4449 color : {
4550 valType : 'color' ,
4651 role : 'style' ,
47- dflt : '#000'
52+ dflt : Color . defaultLine ,
53+ description : 'Sets the color of the contour lines.'
4854 } ,
4955 usecolormap : {
5056 valType : 'boolean' ,
5157 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 ( ' ' )
5364 } ,
5465 width : {
5566 valType : 'number' ,
5667 role : 'style' ,
5768 min : 1 ,
5869 max : 16 ,
59- dflt : 2
70+ dflt : 2 ,
71+ description : 'Sets the width of the contour lines.'
6072 } ,
6173 highlight : {
6274 valType : 'boolean' ,
6375 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 ( ' ' )
6581 } ,
66- highlightColor : {
82+ highlightcolor : {
6783 valType : 'color' ,
6884 role : 'style' ,
69- dflt : '#000'
85+ dflt : Color . defaultLine ,
86+ description : 'Sets the color of the highlighted contour lines.'
7087 } ,
71- highlightWidth : {
88+ highlightwidth : {
7289 valType : 'number' ,
7390 role : 'style' ,
7491 min : 1 ,
7592 max : 16 ,
76- dflt : 2
93+ dflt : 2 ,
94+ description : 'Sets the width of the highlighted contour lines.'
7795 }
7896 } ;
7997}
@@ -102,6 +120,7 @@ module.exports = {
102120 'used for setting a color scale independent of `z`.'
103121 ] . join ( ' ' )
104122 } ,
123+
105124 cauto : colorscaleAttrs . zauto ,
106125 cmin : colorscaleAttrs . zmin ,
107126 cmax : colorscaleAttrs . zmax ,
@@ -110,6 +129,7 @@ module.exports = {
110129 { dflt : false } ) ,
111130 reversescale : colorscaleAttrs . reversescale ,
112131 showscale : colorscaleAttrs . showscale ,
132+
113133 contours : {
114134 x : makeContourAttr ( 'x' ) ,
115135 y : makeContourAttr ( 'y' ) ,
@@ -118,8 +138,15 @@ module.exports = {
118138 hidesurface : {
119139 valType : 'boolean' ,
120140 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 ( ' ' )
122148 } ,
149+
123150 lighting : {
124151 ambient : {
125152 valType : 'number' ,
@@ -163,7 +190,8 @@ module.exports = {
163190 role : 'style' ,
164191 min : 0 ,
165192 max : 1 ,
166- dflt : 1
193+ dflt : 1 ,
194+ description : 'Sets the opacity of the surface.'
167195 } ,
168196
169197 _nestedModules : { // nested module coupling
0 commit comments