Skip to content

Commit 31f6228

Browse files
committed
Expose 'align' and 'valign' attributes for annotations
1 parent 024bd89 commit 31f6228

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/default_panels/StyleNotesPanel.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,28 @@ const StyleNotesPanel = (props, {localize: _}) => (
2424
<Numeric label={_('Font Size')} attr="font.size" units="px" />
2525
<ColorPicker label={_('Font Color')} attr="font.color" />
2626
<Numeric label={_('Angle')} attr="textangle" units="°" />
27+
<Dropdown
28+
label={_('Horizontal Alignment')}
29+
clearable={false}
30+
attr="align"
31+
options={[
32+
{label: _('Left'), value: 'left'},
33+
{label: _('Center'), value: 'center'},
34+
{label: _('Right'), value: 'right'},
35+
]}
36+
/>
37+
<Dropdown
38+
label={_('Vertical Alignment')}
39+
clearable={false}
40+
attr="valign"
41+
options={[
42+
{label: _('Left'), value: 'left'},
43+
{label: _('Center'), value: 'center'},
44+
{label: _('Right'), value: 'right'},
45+
]}
46+
/>
2747
</PlotlySection>
48+
2849
<PlotlySection name={_('Arrow')}>
2950
<Radio
3051
attr="showarrow"

0 commit comments

Comments
 (0)