newOptions returns options with the default values set.
()
| 54 | |
| 55 | // newOptions returns options with the default values set. |
| 56 | func newOptions() *options { |
| 57 | return &options{ |
| 58 | hAlign: align.HorizontalCenter, |
| 59 | vAlign: align.VerticalMiddle, |
| 60 | gapPercent: DefaultGapPercent, |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | // AlignHorizontal sets the horizontal alignment for the individual display |
| 65 | // segments. Defaults to alignment in the center. |