@@ -16,53 +16,78 @@ import {
1616
1717const StyleLayoutPanel = ( props , { localize : _ } ) => (
1818 < TraceRequiredPanel >
19- < PlotlyFold name = { _ ( 'Canvas' ) } >
20- < VisibilitySelect
21- attr = "autosize"
22- label = { _ ( 'Size' ) }
23- options = { [ { label : _ ( 'Auto' ) , value : true } , { label : _ ( 'Custom' ) , value : false } ] }
24- showOn = { false }
25- defaultOpt = { true }
26- >
27- < Numeric label = { _ ( 'Fixed Width' ) } attr = "width" units = "px" />
28- < Numeric label = { _ ( 'Fixed height' ) } attr = "height" units = "px" />
29- </ VisibilitySelect >
19+ < PlotlyFold name = { _ ( 'Defaults' ) } >
3020 < ColorPicker label = { _ ( 'Plot Background' ) } attr = "plot_bgcolor" />
3121 < ColorPicker label = { _ ( 'Margin Color' ) } attr = "paper_bgcolor" />
3222 < ColorwayPicker label = { _ ( 'Base Colors' ) } attr = "colorway" />
33- < HovermodeDropdown label = { _ ( 'Hover Interaction' ) } attr = "hovermode" />
23+ < FontSelector label = { _ ( 'Typeface' ) } attr = "font.family" clearable = { false } />
24+ < Numeric label = { _ ( 'Font Size' ) } attr = "font.size" units = "px" />
25+ < ColorPicker label = { _ ( 'Font Color' ) } attr = "font.color" />
3426 < Dropdown
35- label = { _ ( 'Drag Interaction ' ) }
36- attr = "dragmode "
27+ label = { _ ( 'Number format ' ) }
28+ attr = "separators "
3729 options = { [
38- { label : _ ( 'Orbit ' ) , value : 'orbit ' } ,
39- { label : _ ( 'Turntable ' ) , value : 'turntable ' } ,
40- { label : _ ( 'Zoom ' ) , value : 'zoom ' } ,
41- { label : _ ( 'Pan ' ) , value : 'pan ' } ,
30+ { label : _ ( '1,234.56 ' ) , value : '., ' } ,
31+ { label : _ ( '1 234.56 ' ) , value : ', ' } ,
32+ { label : _ ( '1 234,56 ' ) , value : ', ' } ,
33+ { label : _ ( '1.234,56 ' ) , value : ',. ' } ,
4234 ] }
4335 clearable = { false }
4436 />
4537 </ PlotlyFold >
46- < PlotlyFold name = { _ ( 'Title and Fonts' ) } >
38+
39+ < PlotlyFold name = { _ ( 'Title' ) } >
4740 < PlotlySection name = { _ ( 'Title' ) } attr = "title" >
4841 < TextEditor attr = "title" />
4942 < FontSelector label = { _ ( 'Typeface' ) } attr = "titlefont.family" clearable = { false } />
5043 < Numeric label = { _ ( 'Font Size' ) } attr = "titlefont.size" units = "px" />
5144 < ColorPicker label = { _ ( 'Font Color' ) } attr = "titlefont.color" />
5245 </ PlotlySection >
53- < PlotlySection name = { _ ( 'Global Font' ) } >
54- < FontSelector label = { _ ( 'Typeface' ) } attr = "font.family" clearable = { false } />
55- < Numeric label = { _ ( 'Font Size' ) } attr = "font.size" units = "px" />
56- < ColorPicker label = { _ ( 'Font Color' ) } attr = "font.color" />
57- </ PlotlySection >
5846 </ PlotlyFold >
59- < PlotlyFold name = { _ ( 'Margins and Padding' ) } >
47+ < PlotlyFold name = { _ ( 'Layout' ) } >
48+ < VisibilitySelect
49+ attr = "autosize"
50+ label = { _ ( 'Size' ) }
51+ options = { [ { label : _ ( 'Auto' ) , value : true } , { label : _ ( 'Custom' ) , value : false } ] }
52+ showOn = { false }
53+ defaultOpt = { true }
54+ >
55+ < Numeric label = { _ ( 'Fixed Width' ) } attr = "width" units = "px" />
56+ < Numeric label = { _ ( 'Fixed height' ) } attr = "height" units = "px" />
57+ </ VisibilitySelect >
6058 < Numeric label = { _ ( 'Top' ) } attr = "margin.t" units = "px" />
6159 < Numeric label = { _ ( 'Bottom' ) } attr = "margin.b" units = "px" />
6260 < Numeric label = { _ ( 'Left' ) } attr = "margin.l" units = "px" />
6361 < Numeric label = { _ ( 'Right' ) } attr = "margin.r" units = "px" />
6462 < Numeric label = { _ ( 'Padding' ) } attr = "margin.pad" units = "px" />
6563 </ PlotlyFold >
64+ < PlotlyFold name = { _ ( 'Interaction' ) } >
65+ < HovermodeDropdown label = { _ ( 'Hover Interaction' ) } attr = "hovermode" />
66+ < Dropdown
67+ label = { _ ( 'Drag Interaction' ) }
68+ attr = "dragmode"
69+ options = { [
70+ { label : _ ( 'Zoom' ) , value : 'zoom' } ,
71+ { label : _ ( 'Select' ) , value : 'select' } ,
72+ { label : _ ( 'Pan' ) , value : 'pan' } ,
73+ { label : _ ( 'Lasso' ) , value : 'lasso' } ,
74+ { label : _ ( 'Orbit' ) , value : 'orbit' } ,
75+ { label : _ ( 'Turntable' ) , value : 'turntable' } ,
76+ ] }
77+ clearable = { false }
78+ />
79+ < Dropdown
80+ label = { _ ( 'Select Direction' ) }
81+ attr = "selectdirection"
82+ options = { [
83+ { label : _ ( 'Any' ) , value : 'any' } ,
84+ { label : _ ( 'Horizontal' ) , value : 'h' } ,
85+ { label : _ ( 'Vertical' ) , value : 'v' } ,
86+ { label : _ ( 'Diagonal' ) , value : 'd' } ,
87+ ] }
88+ clearable = { false }
89+ />
90+ </ PlotlyFold >
6691 </ TraceRequiredPanel >
6792) ;
6893
0 commit comments