Remove a twice-defined method

This commit is contained in:
YishiMichael 2022-05-30 10:19:52 +08:00
parent a73bd5d4fe
commit 93265c7341
No known key found for this signature in database
GPG key ID: EC615C0C5A86BC80

View file

@ -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)