mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Push default of use_simple_quadratic_approx being True to Text
This commit is contained in:
parent
9f1ab09749
commit
f0edc6628b
2 changed files with 10 additions and 3 deletions
|
@ -296,7 +296,6 @@ class VMobjectFromSVGPath(VMobject):
|
|||
path_obj: se.Path,
|
||||
should_subdivide_sharp_curves: bool = False,
|
||||
should_remove_null_curves: bool = True,
|
||||
use_simple_quadratic_approx: bool = True,
|
||||
**kwargs
|
||||
):
|
||||
# Get rid of arcs
|
||||
|
@ -305,7 +304,6 @@ class VMobjectFromSVGPath(VMobject):
|
|||
self.should_subdivide_sharp_curves = should_subdivide_sharp_curves
|
||||
self.should_remove_null_curves = should_remove_null_curves
|
||||
super().__init__(
|
||||
use_simple_quadratic_approx=use_simple_quadratic_approx,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
|
|
|
@ -417,9 +417,18 @@ class Text(MarkupText):
|
|||
# For backward compatibility
|
||||
isolate: Selector = (re.compile(r"\w+", re.U), re.compile(r"\S+", re.U)),
|
||||
use_labelled_svg: bool = True,
|
||||
path_string_config: dict = dict(
|
||||
use_simple_quadratic_approx=True,
|
||||
),
|
||||
**kwargs
|
||||
):
|
||||
super().__init__(text, isolate=isolate, use_labelled_svg=use_labelled_svg, **kwargs)
|
||||
super().__init__(
|
||||
text,
|
||||
isolate=isolate,
|
||||
use_labelled_svg=use_labelled_svg,
|
||||
path_string_config=path_string_config,
|
||||
**kwargs
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def get_command_matches(string: str) -> list[re.Match]:
|
||||
|
|
Loading…
Add table
Reference in a new issue