GraphiteEditor/Graphite

Nudge-scaling of points with the Path tool

Open

#2,374 opened on Mar 7, 2025

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (25,662 stars) (1,176 forks)batch import
Good First Issue

Description

With a group of points selected, we'd like to be able to use nudge-scaling to resize their bounding box.

Nudge scaling is when, in the Select tool, you hold Alt when nudging with the arrow keys to resize by nudging only the bottom and right (or instead, top and left if Ctrl is also pressed) edge while keeping the opposite edges of the bounding box stationary, thereby resizing the shape.

This feature should create a bounding box of all selected points, in document space coordinates. Points at the very top and left of the bounds should be unaffected, and points at the very bottom and left should be nudged the full amount, with intermediate points scaling proportionally. This would be equivalent to scaling them with GRS's S if you were able to set the pivot to the top left of the combined points' bounding box. Handles of points should behave as S scaling does presently.


https://github.com/user-attachments/assets/2e4cc512-8614-46d0-befa-f7d3e5253428

At the very end, I'm scaling those points (with the S key followed by X) as a means of illustrating the desired equivalent behavior for nudge scaling.

Arrow keys are used for nudging. In the Select tool, it moves the object. In the Path tool, it moves the points. When you add the Alt modifier key, it performs nudge scaling instead of nudging. But it's not implemented in the Path tool.

Contributor guide

Nudge-scaling of points with the Path tool · GraphiteEditor/Graphite#2374 | Good First Issue