File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ func Class(class string) Option {
1010 }
1111}
1212
13+ func Flex (flex int ) Option {
14+ return func () options.Option {
15+ return options .Flex (flex )
16+ }
17+ }
18+
1319func FontColor (color string ) Option {
1420 return func () options.Option {
1521 return options .FontColor (color )
Original file line number Diff line number Diff line change @@ -14,6 +14,12 @@ func Class(class string) Option {
1414 }
1515}
1616
17+ func ID (id string ) Option {
18+ return func (drawer * Drawer ) {
19+ drawer .SetID (id )
20+ }
21+ }
22+
1723func Transition (transition float64 ) Option {
1824 return func (drawer * Drawer ) {
1925 drawer .transition = transition
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ func Class(class string) Option {
1313 }
1414}
1515
16+ func Flex (flex int ) Option {
17+ return func (link * link ) {
18+ link .opts = append (link .opts , anchor .Flex (flex ))
19+ }
20+ }
21+
1622func FontColor (color string ) Option {
1723 return func (link * link ) {
1824 link .opts = append (link .opts , anchor .FontColor (color ))
You can’t perform that action at this time.
0 commit comments