From 2c20a1509e9fe5ec83de01215bc2c00be1f63a44 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Mon, 19 Dec 2022 14:43:10 -0800 Subject: [PATCH] Remoe height defaults form __init__args of SingleStringTex and String --- manimlib/mobject/svg/string_mobject.py | 4 ++-- manimlib/mobject/svg/tex_mobject.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/manimlib/mobject/svg/string_mobject.py b/manimlib/mobject/svg/string_mobject.py index 8c70b442..7cde9240 100644 --- a/manimlib/mobject/svg/string_mobject.py +++ b/manimlib/mobject/svg/string_mobject.py @@ -51,10 +51,11 @@ class StringMobject(SVGMobject, ABC): so that each submobject of the original `SVGMobject` will be labelled by the color of its paired submobject from the additional `SVGMobject`. """ + height = None + def __init__( self, string: str, - height: float | None = None, fill_color: ManimColor = WHITE, stroke_color: ManimColor = WHITE, stroke_width: float = 0, @@ -75,7 +76,6 @@ class StringMobject(SVGMobject, ABC): self.parse() super().__init__( - height=height, stroke_color=stroke_color, fill_color=fill_color, stroke_width=stroke_width, diff --git a/manimlib/mobject/svg/tex_mobject.py b/manimlib/mobject/svg/tex_mobject.py index 366e659f..8883edd0 100644 --- a/manimlib/mobject/svg/tex_mobject.py +++ b/manimlib/mobject/svg/tex_mobject.py @@ -25,6 +25,8 @@ SCALE_FACTOR_PER_FONT_POINT = 0.001 class SingleStringTex(SVGMobject): + height: float | None = None + def __init__( self, tex_string: str, @@ -60,6 +62,7 @@ class SingleStringTex(SVGMobject): fill_color=fill_color, fill_opacity=fill_opacity, stroke_width=stroke_width, + path_string_config=path_string_config, **kwargs )