⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@exoego
Copy link
Contributor

@exoego exoego commented Jan 26, 2026

What kind of change does this PR introduce?

Some SVGO-optimized SVG files can't be parsed by the current implementation.
This PR copies the implementation from SVGO so that parse can handle SVGO's optimization correctly.

Checklist:

  • Unit Tests
  • Documentation
  • Update CHANGELOG.md
  • Ready to be merged

Adopt SVGO-based parser to handle cases like "a5 5 0 0110 10" where arc flags (large-arc and sweep) are written without separators.

Ref: diegomura/react-pdf#1393
@exoego exoego marked this pull request as ready for review January 26, 2026 03:07
@exoego exoego changed the title fix(path): parse arc flags without separators correctly fix(svg): parse arc flags without separators correctly Jan 26, 2026
@blikblum blikblum merged commit 713ac8f into foliojs:master Jan 26, 2026
3 checks passed
@exoego exoego deleted the fix-svg-path-parsing branch January 26, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants