mirror of
https://github.com/3b1b/manim.git
synced 2026-04-26 03:00:23 -04:00
Have SVGs default to use_simple_quadratic_approx
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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__(
|
||||
|
||||
Reference in New Issue
Block a user