Have SVGs default to use_simple_quadratic_approx

This commit is contained in:
Grant Sanderson
2023-01-13 08:16:46 -08:00
parent e1abae1d96
commit 108bb3da44
2 changed files with 6 additions and 4 deletions

View File

@@ -296,6 +296,7 @@ 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
@@ -303,7 +304,10 @@ class VMobjectFromSVGPath(VMobject):
self.path_obj = path_obj
self.should_subdivide_sharp_curves = should_subdivide_sharp_curves
self.should_remove_null_curves = should_remove_null_curves
super().__init__(**kwargs)
super().__init__(
use_simple_quadratic_approx=use_simple_quadratic_approx,
**kwargs
)
def init_points(self) -> None:
# After a given svg_path has been converted into points, the result

View File

@@ -417,9 +417,7 @@ 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,
),
path_string_config: dict = dict(),
**kwargs
):
super().__init__(