GraphiteEditor / GraphiteEditor/Graphite
Nudge-scaling of points with the Path tool
- Ngôn ngữ chính
- Rust
- Star
- 27.2k
- Fork
- 1.3k
- Merge trung bình
- 20 giờ 5 phút
- Pull request đã merge (30 ngày)
- 57
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách theo dõi cách xử lý phím mũi tên trong Select tool, cùng với thao tác dịch chuyển điểm và hành vi thu phóng bằng phím S tương ứng trong Path tool. Triển khai việc thu phóng bounding box bằng Alt được mô tả cho các điểm đã chọn, bao gồm Ctrl cho các cạnh đối diện, và xác minh rằng các điểm và handle khớp với hành vi thu phóng hiện có.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- rust
- Lĩnh vực
- computer-graphics
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100