GraphiteEditor / GraphiteEditor/Graphite

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

Abierto
#1,934 0 comentarios 0 reacciones 1 asignado Reclamado por @adamgerhant Ver en GitHub
Web
Lenguaje dominante
Rust
Estrellas
27.2k
Forks
1.3k
Merge medio
20 h 5 min
PR fusionados (30 d)
57

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.