mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Fix typo bug and change default alignment for text
This commit is contained in:
parent
dde085094f
commit
06f0374143
1 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,7 @@ class SingleStringTexMobject(SVGMobject):
|
||||||
"font_size": 48,
|
"font_size": 48,
|
||||||
"height": None,
|
"height": None,
|
||||||
"organize_left_to_right": False,
|
"organize_left_to_right": False,
|
||||||
"alignment": "",
|
"alignment": "", # Could be "\\centering",
|
||||||
"math_mode": True,
|
"math_mode": True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,7 +233,7 @@ class TexMobject(SingleStringTexMobject):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def set_color_by_tex_to_color_map(self, tex_to_color_map, **kwargs):
|
def set_color_by_tex_to_color_map(self, tex_to_color_map, **kwargs):
|
||||||
for texs, color in list(tex_to_color_map.items()):
|
for tex, color in list(tex_to_color_map.items()):
|
||||||
self.set_color_by_tex(tex, color, **kwargs)
|
self.set_color_by_tex(tex, color, **kwargs)
|
||||||
return self
|
return self
|
||||||
|
|
||||||
|
@ -267,7 +267,6 @@ class TexMobject(SingleStringTexMobject):
|
||||||
class TextMobject(TexMobject):
|
class TextMobject(TexMobject):
|
||||||
CONFIG = {
|
CONFIG = {
|
||||||
"math_mode": False,
|
"math_mode": False,
|
||||||
"alignment": "\\centering",
|
|
||||||
"arg_separator": "",
|
"arg_separator": "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue