jwmcglynn / donner

Donner SVG, a modern C++20 SVG rendering library supporting the latest SVG2 and CSS3 standards
https://jwmcglynn.github.io/donner/
ISC License
13 stars 1 forks source link

Add PathSpline support for marker-mid on vertices #219

Closed jwmcglynn closed 2 months ago

jwmcglynn commented 2 months ago

Currently PathSpline decomposes higher-order commands (such as arcTo) into other commands before storing in the data structure.

To support marker-mid, we need to find vertices based on the original commands (like the start and end of an arc), without adding markers on segments of the decomposed curves.

Update PathSpline to either delay decomposing, or to store a lookup table from the original arc/etc commands into the list of curveTo commands.

jwmcglynn commented 2 months ago

Fixed by #185