mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 02:17:45 +00:00
Add a small todo
This commit is contained in:
parent
01cda8a130
commit
6b69ed2174
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ from manimlib.mobject.svg.tex_mobject import SingleStringTexMobject
|
|||
from manimlib.mobject.types.vectorized_mobject import VMobject
|
||||
|
||||
|
||||
# TODO, have this cache TexMobjects
|
||||
class DecimalNumber(VMobject):
|
||||
CONFIG = {
|
||||
"num_decimal_places": 2,
|
||||
|
|
@ -63,7 +64,7 @@ class DecimalNumber(VMobject):
|
|||
for i, c in enumerate(num_string):
|
||||
if c == "-" and len(num_string) > i + 1:
|
||||
self[i].align_to(self[i + 1], UP)
|
||||
self[i].shift(self[i+1].get_height() * DOWN / 2)
|
||||
self[i].shift(self[i + 1].get_height() * DOWN / 2)
|
||||
elif c == ",":
|
||||
self[i].shift(self[i].get_height() * DOWN / 2)
|
||||
if self.unit and self.unit.startswith("^"):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue