Skip to content

Commit

Permalink
Allow configuration in Brace.get_text
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Apr 1, 2021
1 parent e95aa69 commit ca9f435
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions manimlib/mobject/svg/brace.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ def put_at_tip(self, mob, use_next_to=True, **kwargs):
return self

def get_text(self, text, **kwargs):
text_mob = Text(text)
self.put_at_tip(text_mob, **kwargs)
buff = kwargs.pop("buff", SMALL_BUFF)
text_mob = Text(text, **kwargs)
self.put_at_tip(text_mob, buff=buff)
return text_mob

def get_tex(self, *tex, **kwargs):
Expand Down

0 comments on commit ca9f435

Please sign in to comment.