mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Allow configuration of VMobjectFromSVGPathstring from SVGMobject
This commit is contained in:
parent
091cd355d4
commit
ad60b903d0
1 changed files with 5 additions and 1 deletions
|
@ -73,6 +73,7 @@ class SVGMobject(VMobject):
|
|||
# TODO, style components should be read in, not defaulted
|
||||
"stroke_width": DEFAULT_STROKE_WIDTH,
|
||||
"fill_opacity": 1.0,
|
||||
"path_string_config": {}
|
||||
}
|
||||
|
||||
def __init__(self, file_name=None, **kwargs):
|
||||
|
@ -148,7 +149,10 @@ class SVGMobject(VMobject):
|
|||
return mob.submobjects
|
||||
|
||||
def path_string_to_mobject(self, path_string):
|
||||
return VMobjectFromSVGPathstring(path_string)
|
||||
return VMobjectFromSVGPathstring(
|
||||
path_string,
|
||||
**self.path_string_config,
|
||||
)
|
||||
|
||||
def use_to_mobjects(self, use_element):
|
||||
# Remove initial "#" character
|
||||
|
|
Loading…
Add table
Reference in a new issue