GraphiteEditor / GraphiteEditor/Graphite

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

Aperta
#1,934 0 commenti 0 reazioni 1 assegnatario Rivendicata da @adamgerhant Vedi su GitHub
Web
Lingua principale
Rust
Stelle
27.2k
Fork
1.3k
Merge medio
20h 5m
PR unite (30g)
57

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.