Repository navigation
Fix the radius of half-size circles in SVG path output - #442
Open
bug-origin wants to merge 1 commit into
Open
bug-origin wants to merge 1 commit into
bug-origin wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #441.
The endpoints of each circular SVG subpath already include the inset for
size_ratio. Its radius was reduced by that inset a second time. At a ratio of 0.5 this produced zero-radius arcs between distinct endpoints and the circles disappeared.Use half the drawn module width for each arc, as the element-based circle drawer does. The new regression test checks the half-size case.
Rendered the example from the issue at 290×290 using resvg. The path-based output went from zero to 6,376 nontransparent pixels, with the same visible bounds as the element-based output. The Python 3.13 test suite passed (98 passed, one skipped). Local Ruff lint and format checks reported the same findings on main and the PR.