GraphiteEditor / GraphiteEditor/Graphite

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

オープン
#1,934 コメント 0 件 リアクション 0 件 担当者 1 名 @adamgerhant が担当を希望しています GitHub で見る
Web
主要言語
Rust
スター
27.2k
フォーク
1.3k
平均マージ
20時間 5分
マージ済み PR(30日)
57

説明

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

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

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

評価

この issue はまだ評価されていません。

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

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