Skip to main content

get_subpaths

Function get_subpaths 

Source
pub fn get_subpaths(path: &str) -> Vec<String>
Expand description

Splits a compound SVG path into individual subpaths based on M (move) commands.

Returns an empty vector if the path cannot be parsed or contains no instructions.