6
6
Numeric ,
7
7
Radio ,
8
8
PlotlySection ,
9
+ Dropdown ,
9
10
SliderAccordion ,
10
11
} from '../components' ;
11
12
@@ -31,6 +32,41 @@ const StyleSlidersPanel = (props, {localize: _}) => (
31
32
< Numeric label = { _ ( 'Size' ) } attr = "font.size" />
32
33
< ColorPicker label = { _ ( 'Color' ) } attr = "font.color" />
33
34
</ PlotlySection >
35
+ < PlotlySection name = { _ ( 'Length' ) } attr = { 'len' } >
36
+ < Numeric label = { _ ( 'Length' ) } attr = { 'len' } step = { 0.02 } />
37
+ < Dropdown
38
+ label = { _ ( 'Length Mode' ) }
39
+ attr = { 'lenmode' }
40
+ options = { [
41
+ { label : _ ( 'Fraction of canvas' ) , value : 'fraction' } ,
42
+ { label : _ ( 'Pixels' ) , value : 'pixels' } ,
43
+ ] }
44
+ />
45
+ </ PlotlySection >
46
+ < PlotlySection name = { _ ( 'Horizontal Positioning' ) } attr = { 'x' } >
47
+ < Numeric label = { _ ( 'Position' ) } attr = { 'x' } showSlider step = { 0.02 } />
48
+ < Radio
49
+ label = { _ ( 'Anchor' ) }
50
+ attr = { 'xanchor' }
51
+ options = { [
52
+ { label : _ ( 'Left' ) , value : 'left' } ,
53
+ { label : _ ( 'Center' ) , value : 'center' } ,
54
+ { label : _ ( 'Right' ) , value : 'right' } ,
55
+ ] }
56
+ />
57
+ </ PlotlySection >
58
+ < PlotlySection name = { _ ( 'Vertical Positioning' ) } attr = { 'y' } >
59
+ < Numeric label = { _ ( 'Position' ) } attr = { 'y' } showSlider step = { 0.02 } />
60
+ < Radio
61
+ label = { _ ( 'Anchor' ) }
62
+ attr = { 'yanchor' }
63
+ options = { [
64
+ { label : _ ( 'Top' ) , value : 'top' } ,
65
+ { label : _ ( 'Middle' ) , value : 'middle' } ,
66
+ { label : _ ( 'Bottom' ) , value : 'bottom' } ,
67
+ ] }
68
+ />
69
+ </ PlotlySection >
34
70
< PlotlySection name = { _ ( 'Padding' ) } >
35
71
< Numeric label = { _ ( 'Top' ) } attr = "pad.t" units = "px" />
36
72
< Numeric label = { _ ( 'Bottom' ) } attr = "pad.b" units = "px" />
@@ -39,7 +75,7 @@ const StyleSlidersPanel = (props, {localize: _}) => (
39
75
</ PlotlySection >
40
76
< PlotlySection name = { _ ( 'Ticks' ) } >
41
77
< ColorPicker label = { _ ( 'Color' ) } attr = "tickcolor" />
42
- < Numeric label = { _ ( 'Legth ' ) } attr = "ticklen" />
78
+ < Numeric label = { _ ( 'Length ' ) } attr = "ticklen" />
43
79
< Numeric label = { _ ( 'Width' ) } attr = "tickwidth" />
44
80
</ PlotlySection >
45
81
</ SliderAccordion >
0 commit comments