Crate svg2polylines [] [src]

Convert an SVG file to a list of polylines (aka polygonal chains or polygonal paths).

This can be used e.g. for simple drawing robot that just support drawing straight lines and liftoff / drop pen commands.

Note: Currently the library only supports straight lines, no curves! Also, the path style is completely ignored. Only the path itself is returned.

Minimal supported Rust version: 1.15.

FFI bindings for this crate can be found on Github.

You can optionally get serde support by enabling the use_serde feature.

Structs

CoordinatePair

A CoordinatePair consists of an x and y coordinate.

Functions

parse

Parse an SVG string into a vector of polylines.

Type Definitions

Polyline

A polyline is a vector of CoordinatePair instances.