mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added include_sign to ChangingDecimal config
This commit is contained in:
parent
1fdf4d21e0
commit
b954b2ef5b
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ class ChangingDecimal(Animation):
|
||||||
"num_decimal_places": None,
|
"num_decimal_places": None,
|
||||||
"show_ellipsis": None,
|
"show_ellipsis": None,
|
||||||
"position_update_func": None,
|
"position_update_func": None,
|
||||||
|
"include_sign": None,
|
||||||
"tracked_mobject": None,
|
"tracked_mobject": None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +22,7 @@ class ChangingDecimal(Animation):
|
||||||
self.decimal_number_config = dict(
|
self.decimal_number_config = dict(
|
||||||
decimal_number_mobject.initial_config
|
decimal_number_mobject.initial_config
|
||||||
)
|
)
|
||||||
for attr in "num_decimal_places", "show_ellipsis":
|
for attr in "num_decimal_places", "show_ellipsis", "include_sign":
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
if value is not None:
|
if value is not None:
|
||||||
self.decimal_number_config[attr] = value
|
self.decimal_number_config[attr] = value
|
||||||
|
|
Loading…
Add table
Reference in a new issue