mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Rename get_tex_string -> get_tex
This commit is contained in:
parent
6259d1c897
commit
5eee39803f
3 changed files with 5 additions and 5 deletions
|
@ -132,4 +132,4 @@ class TransformMatchingTex(TransformMatchingParts):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_mobject_key(mobject):
|
def get_mobject_key(mobject):
|
||||||
return mobject.get_tex_string()
|
return mobject.get_tex()
|
||||||
|
|
|
@ -132,7 +132,7 @@ class SingleStringTexMobject(SVGMobject):
|
||||||
num_rights += 1
|
num_rights += 1
|
||||||
return tex
|
return tex
|
||||||
|
|
||||||
def get_tex_string(self):
|
def get_tex(self):
|
||||||
return self.tex_string
|
return self.tex_string
|
||||||
|
|
||||||
def path_string_to_mobject(self, path_string):
|
def path_string_to_mobject(self, path_string):
|
||||||
|
@ -222,7 +222,7 @@ class TexMobject(SingleStringTexMobject):
|
||||||
return tex1 == tex2
|
return tex1 == tex2
|
||||||
|
|
||||||
return VGroup(*filter(
|
return VGroup(*filter(
|
||||||
lambda m: isinstance(m, SingleStringTexMobject) and test(tex, m.get_tex_string()),
|
lambda m: isinstance(m, SingleStringTexMobject) and test(tex, m.get_tex()),
|
||||||
self.submobjects
|
self.submobjects
|
||||||
))
|
))
|
||||||
|
|
||||||
|
@ -259,7 +259,7 @@ class TexMobject(SingleStringTexMobject):
|
||||||
return self[start_index:stop_index]
|
return self[start_index:stop_index]
|
||||||
|
|
||||||
def sort_alphabetically(self):
|
def sort_alphabetically(self):
|
||||||
self.submobjects.sort(key=lambda m: m.get_tex_string())
|
self.submobjects.sort(key=lambda m: m.get_tex())
|
||||||
|
|
||||||
def set_bstroke(self, color=BLACK, width=4):
|
def set_bstroke(self, color=BLACK, width=4):
|
||||||
self.set_stroke(color, width, background=True)
|
self.set_stroke(color, width, background=True)
|
||||||
|
|
|
@ -408,7 +408,7 @@ class LinearTransformationScene(VectorScene):
|
||||||
else:
|
else:
|
||||||
label_mob.target_text = "%s(%s)" % (
|
label_mob.target_text = "%s(%s)" % (
|
||||||
transformation_name,
|
transformation_name,
|
||||||
label_mob.get_tex_string()
|
label_mob.get_tex()
|
||||||
)
|
)
|
||||||
label_mob.vector = vector
|
label_mob.vector = vector
|
||||||
label_mob.kwargs = kwargs
|
label_mob.kwargs = kwargs
|
||||||
|
|
Loading…
Add table
Reference in a new issue