Skip to content

Add Tangent on Border Special Case#1103

Open
johannes-wolf wants to merge 2 commits into
border-anchor-fast-pathsfrom
cetz-971-tangent-on-border
Open

Add Tangent on Border Special Case#1103
johannes-wolf wants to merge 2 commits into
border-anchor-fast-pathsfrom
cetz-971-tangent-on-border

Conversation

@johannes-wolf

Copy link
Copy Markdown
Member

If the reference point for a tangent is on the border of an ellipse, return a usable tangent point.

Fixes #971

This speeds up border anchor calculation for (non-rounded) rects,
circles and groups and also sets-up a switch to Tikz style border
anchors.
@johannes-wolf johannes-wolf marked this pull request as ready for review May 13, 2026 00:41
If the reference point for a tangent is on the border of an
ellipse, return a usable tangent point.

Fixes #971
@johannes-wolf johannes-wolf force-pushed the cetz-971-tangent-on-border branch from 04ae867 to 24064c6 Compare May 13, 2026 00:44
@johannes-wolf johannes-wolf changed the base branch from 0.5.3 to border-anchor-fast-paths May 13, 2026 00:45
@johannes-wolf johannes-wolf added this to the 0.5.3 milestone May 13, 2026
@johannes-wolf johannes-wolf force-pushed the border-anchor-fast-paths branch 2 times, most recently from 9cb84d5 to 836b5e9 Compare May 14, 2026 12:06
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.

1 participant