GraphiteEditor / GraphiteEditor/Graphite

Add and implement expand/collapse arrow buttons in the graph to hide upstream branches

Đang mở
#1,934 0 bình luận 0 reaction 1 người được giao Được @adamgerhant nhận Xem trên GitHub
Web
Ngôn ngữ chính
Rust
Star
27.3k
Fork
1.3k
Merge trung bình
20 giờ 5 phút
Pull request đã merge (30 ngày)
57

Mô tả

The icon for a node, when that icon is hovered, shall change to an expand/collapse arrow (![capture](https://github.com/user-attachments/assets/bbf5a310-cad7-4096-a41e-e5efcb74ca58)). Secondary inputs also have that arrow, aligned underneath the location of the node's icon, in the location where the text is—which will slide rightward or be covered over—to accommodate the expand/collapse arrow button.

For nodes, the buttons, which appear when they're hovered over, go here:

![capture](https://github.com/user-attachments/assets/a8af66e0-bd57-400a-a1cb-5e7f81f7f512)

For layers, the arrow goes on the layer node icon:

![capture](https://github.com/user-attachments/assets/987f494d-7c29-43e3-82b6-1b408fd00e2d)

When a layer's side input is collapsed, the input thumbnail remains and the layer retracts to encompass only as far as that thumbnail, but all upstream nodes disappear:

![capture](https://github.com/user-attachments/assets/3751d527-ad97-49dd-900b-819df97e7d35)

When a node's primary input is collapsed, the input thumbnail remains and the layer retracts to encompass only as far as that thumbnail, but the remaining nodes disappear:

![capture](https://github.com/user-attachments/assets/9a37b1d0-032c-410d-bc37-ab90752723f9)

When a layer's secondary input is collapsed, the horizontal part of the wire is kept but fades out rather than curving downwards to the nodes/layers that it previously led to:

![capture](https://github.com/user-attachments/assets/8618426b-5899-43ad-a33f-36b4c229a390)

The collapsed icon remains visible when it's collapsed (not only while hovered).

Via the context menu when right-clicking a node, we also will have two other ways to collapse nodes:
- Collapse all secondary inputs and fold them up within the single-row node
- Collapse the text name for the node, reducing its width

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

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.