@@ -28,6 +28,7 @@ import {localize} from '../lib';
2828const StyleTracesPanel = ( { localize : _ } ) => (
2929 < TraceAccordion >
3030 < Section name = { _ ( 'Trace' ) } attr = "name" >
31+ < TextEditor label = { _ ( 'Name' ) } attr = "name" richTextOnly />
3132 < TraceOrientation
3233 label = { _ ( 'Orientation' ) }
3334 attr = "orientation"
@@ -38,16 +39,17 @@ const StyleTracesPanel = ({localize: _}) => (
3839 />
3940
4041 < Numeric label = { _ ( 'Opacity' ) } step = { 0.1 } attr = "opacity" />
42+ < ColorPicker label = { _ ( 'Color' ) } attr = "color" />
4143 </ Section >
4244
4345 < Section name = { _ ( 'Text Attributes' ) } >
4446 < Flaglist
4547 attr = "textinfo"
4648 options = { [
47- { label : 'Label' , value : 'label' } ,
48- { label : 'Text' , value : 'text' } ,
49- { label : 'Value' , value : 'value' } ,
50- { label : '%' , value : 'percent' } ,
49+ { label : _ ( 'Label' ) , value : 'label' } ,
50+ { label : _ ( 'Text' ) , value : 'text' } ,
51+ { label : _ ( 'Value' ) , value : 'value' } ,
52+ { label : _ ( '%' ) , value : 'percent' } ,
5153 ] }
5254 />
5355 </ Section >
@@ -56,8 +58,17 @@ const StyleTracesPanel = ({localize: _}) => (
5658 < Flaglist
5759 attr = "mode"
5860 options = { [
59- { label : 'Lines' , value : 'lines' } ,
60- { label : 'Points' , value : 'markers' } ,
61+ { label : _ ( 'Lines' ) , value : 'lines' } ,
62+ { label : _ ( 'Points' ) , value : 'markers' } ,
63+ { label : _ ( 'Text' ) , value : 'text' } ,
64+ ] }
65+ />
66+ < Radio
67+ attr = "flatshading"
68+ label = { _ ( 'flatshading' ) }
69+ options = { [
70+ { label : _ ( 'Enable' ) , value : true } ,
71+ { label : _ ( 'Disable' ) , value : false } ,
6172 ] }
6273 />
6374 </ Section >
@@ -125,9 +136,17 @@ const StyleTracesPanel = ({localize: _}) => (
125136 />
126137 </ TraceTypeSection >
127138
139+ < TraceTypeSection name = { _ ( 'Lines' ) } traceTypes = { [ 'scatter3d' ] } >
140+ < Numeric label = { _ ( 'Width' ) } attr = "line.width" />
141+ < ColorPicker label = { _ ( 'Line Color' ) } attr = "line.color" />
142+ < LineDashSelector label = { _ ( 'Type' ) } attr = "line.dash" />
143+ < LineShapeSelector label = { _ ( 'Shape' ) } attr = "line.shape" />
144+ </ TraceTypeSection >
145+
128146 < Section name = { _ ( 'Colorscale' ) } >
129147 < ColorscalePicker label = { _ ( 'Colorscale' ) } attr = "colorscale" />
130148 < Radio
149+ label = { _ ( 'Orientation' ) }
131150 attr = "reversescale"
132151 options = { [
133152 { label : _ ( 'Normal' ) , value : false } ,
@@ -236,6 +255,18 @@ const StyleTracesPanel = ({localize: _}) => (
236255 units = "%"
237256 step = { 0.1 }
238257 />
258+ < Numeric
259+ label = { _ ( 'Vertex Normal' ) }
260+ attr = "lighting.vertexnormalsepsilon"
261+ units = "%"
262+ step = { 0.1 }
263+ />
264+ < Numeric
265+ label = { _ ( 'Face Normal' ) }
266+ attr = "lighting.facenormalsepsilon"
267+ units = "%"
268+ step = { 0.1 }
269+ />
239270 </ Section >
240271
241272 < Section name = { _ ( 'Light Position' ) } >
@@ -295,12 +326,22 @@ const StyleTracesPanel = ({localize: _}) => (
295326 />
296327 </ Section >
297328
298- < Section name = { _ ( 'Values Shown On Hover' ) } >
329+ < Section name = { _ ( 'On Hover' ) } >
299330 < HoverInfo
300331 attr = "hoverinfo"
301332 label = { _ ( 'Values Shown On Hover' ) }
302333 localize = { _ }
303334 />
335+ < Radio
336+ label = { _ ( 'Show contour' ) }
337+ attr = "contour.show"
338+ options = { [
339+ { label : _ ( 'Show' ) , value : true } ,
340+ { label : _ ( 'Hide' ) , value : false } ,
341+ ] }
342+ />
343+ < ColorPicker label = { _ ( 'Contour Color' ) } attr = "contour.color" />
344+ < Numeric label = { _ ( 'Contour Width' ) } attr = "contour.width" />
304345 </ Section >
305346
306347 < TraceTypeSection name = { _ ( 'Hover Action' ) } traceTypes = { [ 'box' ] } >
0 commit comments