Capítulo 274 de 411

Chapter 274: MotionPathPlugin.convertToPath()

Core Idea

Converts basic SVG shapes (circle, rect, ellipse, line) into <path> elements — identical utility to MorphSVGPlugin's version, exposed here too since MotionPath also needs path-based shapes.

Reference Tables

ParameterType
shapeString | Element
swapBoolean (default true)

Returns: Array of resulting <path> elements.

Connects To

  • MorphSVGPlugin.convertToPath(): the equivalent method on that plugin.