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

added snap and lock angle feature to path tool #2160

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bakayu
Copy link
Contributor

@bakayu bakayu commented Dec 24, 2024

Closes #1870 partly...
This PR aims to close the following parts of #1870 :

  • Alt keeps the handles equidistant while pressed (instead of Shift in use now) (Add Path tool support for the Tab key swapping to dragging the opposite handle #2058)
    • It also creates a matching handle if the other is zero-length or not a cubic Bézier
  • Shift locks the handle angle to 15° increments
    • (shouldn't interfere with Shift-clicking handles for multi-selecting points such as handles)
  • Ctrl locks the current angle of the handle

@Keavon
Copy link
Member

Keavon commented Dec 25, 2024

!build

Copy link

📦 Build Complete for acd7e1e
https://31e24e5f.graphite.pages.dev

bakayu and others added 4 commits December 25, 2024 19:55
- Previous implementation broke functionality of using Tab to swap the being-dragged handle to its opposing handle, Now fixed.
- Previous implementation broke functionality of using space to drag the manipulator group (anchor + handles) while dragging a handle, Now fixed.
Now, if `shift` is used to snap to a 15° increment, then `ctrl` is used to preserve the angle, releasing the `shift` key will still preserve the angle.
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.

Tracking Issue: Pen and Path tool improvements
3 participants