Add a small todo

This commit is contained in:
Grant Sanderson 2020-02-18 22:32:02 -08:00
parent 01cda8a130
commit 6b69ed2174

View file

@ -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("^"):