GraphiteEditor / GraphiteEditor/Graphite

Nudge-scaling of points with the Path tool

オープン
#2,374 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Good First Issue
主要言語
Rust
スター
27.2k
フォーク
1.3k
平均マージ
20時間 5分
マージ済み PR(30日)
57

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Start by tracing arrow-key handling in the Select tool and the corresponding Path tool point-nudging and S-key scaling behavior. Implement the Alt-modified bounding-box scaling described for selected points, including Ctrl for the opposite edges, and verify that points and handles match the existing scaling behavior.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
rust
領域
computer-graphics
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。