Skip to content

[FEATURE] Throw an error when the morphed target is not a valid SVGPolygonElement or SVGPathElement #1061

@juliangarnier

Description

@juliangarnier

At the moment, morphing an invalid target type results in a vague error message like mentioned in #1060

Console error reads: TypeError: $path1.getTotalLength is not a function. (In '$path1.getTotalLength()', '$path1.getTotalLength' is undefined)

We should throw a much more precise error, explaining which type of target can be morphed.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions