Skip to content

fix(eps): correct elliptic arc to curve conversion sweep handling#233

Merged
DASPRiD merged 1 commit intomainfrom
fix/eps-elliptic-arc
Apr 5, 2026
Merged

fix(eps): correct elliptic arc to curve conversion sweep handling#233
DASPRiD merged 1 commit intomainfrom
fix/eps-elliptic-arc

Conversation

@DASPRiD
Copy link
Copy Markdown
Member

@DASPRiD DASPRiD commented Apr 5, 2026

The sweep direction logic in EllipticArc::toCurves() did not follow SVG spec F.6.5.6 correctly. It unconditionally subtracted 2π when sweep was false, and never handled the sweep=true with negative delta case. This caused some arcs to trace the wrong direction, resulting in broken rounded corners when rendering QR codes as EPS.

Closes #150

The sweep direction logic in EllipticArc::toCurves() did not follow
SVG spec F.6.5.6 correctly. It unconditionally subtracted 2π when
sweep was false, and never handled the sweep=true with negative delta
case. This caused some arcs to trace the wrong direction, resulting
in broken rounded corners when rendering QR codes as EPS.

Closes #150

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

❌ Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.77%. Comparing base (bf7d67c) to head (b6ad698).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/Renderer/Path/EllipticArc.php 0.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #233      +/-   ##
============================================
- Coverage     71.81%   71.77%   -0.05%     
- Complexity      995      998       +3     
============================================
  Files            49       49              
  Lines          3151     3153       +2     
============================================
  Hits           2263     2263              
- Misses          888      890       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DASPRiD DASPRiD merged commit 092067a into main Apr 5, 2026
7 of 9 checks passed
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.

Broken style when exporting rounded qr code as eps

1 participant