mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Adding "lable_buff" config parameter for Brace
This commit is contained in:
parent
919133c6bf
commit
0a318486c5
1 changed files with 2 additions and 1 deletions
|
@ -88,6 +88,7 @@ class BraceLabel(VMobject):
|
|||
CONFIG = {
|
||||
"label_constructor": Tex,
|
||||
"label_scale": 1,
|
||||
"lable_buff": DEFAULT_MOBJECT_TO_MOBJECT_BUFFER
|
||||
}
|
||||
|
||||
def __init__(self, obj, text, brace_direction=DOWN, **kwargs):
|
||||
|
@ -104,7 +105,7 @@ class BraceLabel(VMobject):
|
|||
if self.label_scale != 1:
|
||||
self.label.scale(self.label_scale)
|
||||
|
||||
self.brace.put_at_tip(self.label)
|
||||
self.brace.put_at_tip(self.label, buff=self.lable_buff)
|
||||
self.set_submobjects([self.brace, self.label])
|
||||
|
||||
def creation_anim(self, label_anim=FadeIn, brace_anim=GrowFromCenter):
|
||||
|
|
Loading…
Add table
Reference in a new issue