friction2d / friction

Friction Graphics
https://friction.graphics
GNU General Public License v3.0
233 stars 12 forks source link

SVG stroke-linecap & stroke-linejoin not supported #197

Closed vestineo closed 3 months ago

vestineo commented 3 months ago

stroke-linecap and stroke-linejoin are not supported while importing SVG file. They fallback to default round for both linejoin and linecap. Also, default values (when join and cap style not specified) are different according to SVG specifications. Default values for linejoin should be miter and for linecap that should be butt.

https://www.w3.org/TR/2002/CR-SVG11-20020430/painting.html#StrokeProperties

Screenshot Screenshot 2024-06-30 204133

SVG Files linecap_test linejoin_test

rodlie commented 3 months ago

The fix looks good here: friction-spiderman

I will probably cherry-pick the fix for the v0.9 branch (0.9.6.1) since v1 will probably take a while.

irwant commented 1 month ago

also make it support for exporter