Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

DecimalNumber: Don't set `stroke_width` attribute directly (#3210)

Naveen M K524b27a29827
diff --git a/manim/mobject/text/numbers.py b/manim/mobject/text/numbers.py
index b5b9f71c8..f5eff7fad 100644
--- a/manim/mobject/text/numbers.py
+++ b/manim/mobject/text/numbers.py
@@ -66,7 +66,7 @@ class DecimalNumber(VMobject, metaclass=ConvertToOpenGL):
fill_opacity: float = 1.0,
**kwargs,
):
- super().__init__(**kwargs)
+ super().__init__(**kwargs, stroke_width=stroke_width)
self.number = number
self.num_decimal_places = num_decimal_places
self.include_sign = include_sign
@@ -78,7 +78,6 @@ class DecimalNumber(VMobject, metaclass=ConvertToOpenGL):
self.include_background_rectangle = include_background_rectangle
self.edge_to_fix = edge_to_fix
self._font_size = font_size
- self.stroke_width = stroke_width
self.fill_opacity = fill_opacity
self.initial_config = kwargs.copy()