Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance and Angle Path Anchors #381

Merged
merged 5 commits into from
Dec 21, 2023
Merged

Distance and Angle Path Anchors #381

merged 5 commits into from
Dec 21, 2023

Conversation

johannes-wolf
Copy link
Member

@johannes-wolf johannes-wolf commented Dec 9, 2023

This PR adds path anchors for fixed and relative distances to most elements.
Closed elements (circle, rect, arc) can also handle angle anchors.

This means:
(name: "element", anchor: <number, ratio, angle, string>)
can be used to get dynamic anchors on element paths.

  • Arc PIE mode line strip has been fixed and is now the last element, after the arc so that all arc paths start at arc-start.
  • All paths got start, mid and end anchors that point to 0%, 50% and 100% of the path.

@johannes-wolf johannes-wolf added enhancement ⬆️ New feature or request feature 🎁 Feature Request labels Dec 9, 2023
@johannes-wolf johannes-wolf changed the base branch from master to 0.2.0 December 9, 2023 01:55
@johannes-wolf johannes-wolf changed the title Path anchors Distance and Angle Path Anchors Dec 9, 2023
@johannes-wolf johannes-wolf added this to the 0.2 milestone Dec 9, 2023
@johannes-wolf johannes-wolf force-pushed the path-anchors branch 6 times, most recently from b36ad32 to dd6a008 Compare December 15, 2023 16:58
@johannes-wolf johannes-wolf merged commit 6aeb792 into 0.2.0 Dec 21, 2023
2 checks passed
@johannes-wolf johannes-wolf deleted the path-anchors branch December 21, 2023 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ⬆️ New feature or request feature 🎁 Feature Request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant