mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 09:57:48 +00:00
Remove a twice-defined method
This commit is contained in:
parent
a73bd5d4fe
commit
93265c7341
1 changed files with 1 additions and 12 deletions
|
|
@ -205,7 +205,7 @@ class SVGMobject(VMobject):
|
|||
elif type(shape) == se.SVGElement:
|
||||
continue
|
||||
else:
|
||||
log.warning(f"Unsupported element type: {type(shape)}")
|
||||
log.warning("Unsupported element type: %s", type(shape))
|
||||
continue
|
||||
if not mob.has_points():
|
||||
continue
|
||||
|
|
@ -240,17 +240,6 @@ class SVGMobject(VMobject):
|
|||
)
|
||||
return mob
|
||||
|
||||
@staticmethod
|
||||
def handle_transform(mob, matrix):
|
||||
mat = np.array([
|
||||
[matrix.a, matrix.c],
|
||||
[matrix.b, matrix.d]
|
||||
])
|
||||
vec = np.array([matrix.e, matrix.f, 0.0])
|
||||
mob.apply_matrix(mat)
|
||||
mob.shift(vec)
|
||||
return mob
|
||||
|
||||
def path_to_mobject(self, path: se.Path) -> VMobjectFromSVGPath:
|
||||
return VMobjectFromSVGPath(path, **self.path_string_config)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue