Capítulo 264 de 411
Converts basic SVG shapes (circle, rect, ellipse, line) into <path> elements, since only paths (and polyline/polygon) can actually be morphed.
| Parameter | Type | Description |
|---|---|---|
| shape | Element | String | element or selector to convert |
| swap | Boolean | default true: replaces the shape in the DOM with the new path; false leaves the original in place |
Returns: Array of the created <path> elements.
MorphSVGPlugin.convertToPath("circle, rect");