Fix- pen tool causing jitter at the endpoints#3913
Fix- pen tool causing jitter at the endpoints#3913Chetansahney wants to merge 9 commits intoGraphiteEditor:masterfrom
Conversation
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…nsahney/Graphite into fix-shape-handle-mirroring
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a specific pen tool issue related to merging paths at their endpoints by refining the logic for identifying extendable paths. Additionally, it significantly enhances the user experience for editing fundamental vector shapes like circles, arcs, and spirals by introducing linked collinear manipulators, allowing for more intuitive and unified adjustments of these geometric forms. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
The pull request refactors the should_extend function with an inline implementation for finding the closest point, though a review comment suggests encapsulating this logic for better readability and maintainability. Additionally, the circle, arc, and spiral shape generation functions were updated to add colinear_manipulators to the generated Vector objects, linking all handles for circles and linking handles for adjacent cubic bezier segments in arcs and spirals. Review feedback suggests refactoring the duplicated handle linking logic in arc and spiral into a reusable function, adding comments to explain the is_cubic() check, and considering HandleId::new for creating handle IDs for consistency and safety.
9b97ab7 to
2e842cb
Compare
Fixes #3912
(the pen merging issue at the endpoints) with reference to the conversation:
https://discord.com/channels/731730685944922173/731738914812854303/1483829916096139377
&
https://discord.com/channels/731730685944922173/731738914812854303/1481800685107544165
Any feedbacks are appreciated.