bodoni / svg

Composer and parser for SVG
Other
299 stars 45 forks source link

Support using euclid::Point2D as path parameters #56

Closed birkett83 closed 2 years ago

birkett83 commented 2 years ago

The euclid crate is nice for working with points in 2d so it's a natural fit for SVG but it's not possible to implement From<Point2D<N, U>> for Parameters in your own project because of the orphan rule so I made an optional feature to support it.

Calling .to_tuple() everywhere instead would work so maybe this is overkill, up to you.

IvanUkhov commented 2 years ago

Thank you for the PR. This create is supposed to be minimalistic with no external dependencies.