Skip to content

Close bezier mapBounds path so the outline joins back#41

Merged
nighthawk merged 1 commit into
mainfrom
fixes
May 9, 2026
Merged

Close bezier mapBounds path so the outline joins back#41
nighthawk merged 1 commit into
mainfrom
fixes

Conversation

@nighthawk
Copy link
Copy Markdown
Member

GeoDrawer.draw(_ bounds:in:) built the bezier outline path with move

  • a series of addLine calls but never called closeSubpath(), so the last vertex never connected back to the first when stroked. On Danseiji projections (whose edge polygon vertices are dense and asymmetric) this showed up as a visible gap at the polygon's start/end seam.

The SVG renderer already closes the path with Z, so it didn't have the bug — only the Core Graphics path did. Add a closeSubpath() to match.

`GeoDrawer.draw(_ bounds:in:)` built the bezier outline path with `move`
+ a series of `addLine` calls but never called `closeSubpath()`, so the
last vertex never connected back to the first when stroked. On Danseiji
projections (whose edge polygon vertices are dense and asymmetric) this
showed up as a visible gap at the polygon's start/end seam.

The SVG renderer already closes the path with `Z`, so it didn't have
the bug — only the Core Graphics path did. Add a `closeSubpath()` to
match.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@nighthawk nighthawk self-assigned this May 9, 2026
@nighthawk nighthawk added the bug Something isn't working label May 9, 2026
@nighthawk nighthawk merged commit 39592fa into main May 9, 2026
8 checks passed
@nighthawk nighthawk deleted the fixes branch May 9, 2026 05:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant