mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 14:47:44 +00:00
Use Text not TexText for Brace
This commit is contained in:
parent
15f3b359ae
commit
933b7fd3da
1 changed files with 3 additions and 2 deletions
|
|
@ -8,6 +8,7 @@ from manimlib.animation.growing import GrowFromCenter
|
|||
from manimlib.mobject.svg.tex_mobject import Tex
|
||||
from manimlib.mobject.svg.tex_mobject import SingleStringTex
|
||||
from manimlib.mobject.svg.tex_mobject import TexText
|
||||
from manimlib.mobject.svg.text_mobject import Text
|
||||
from manimlib.mobject.types.vectorized_mobject import VMobject
|
||||
from manimlib.utils.config_ops import digest_config
|
||||
from manimlib.utils.space_ops import get_norm
|
||||
|
|
@ -61,8 +62,8 @@ class Brace(SingleStringTex):
|
|||
mob.shift(self.get_direction() * shift_distance)
|
||||
return self
|
||||
|
||||
def get_text(self, *text, **kwargs):
|
||||
text_mob = TexText(*text)
|
||||
def get_text(self, text, **kwargs):
|
||||
text_mob = Text(text)
|
||||
self.put_at_tip(text_mob, **kwargs)
|
||||
return text_mob
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue