Graphite icon indicating copy to clipboard operation
Graphite copied to clipboard

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

Open Keavon opened this issue 1 year ago • 0 comments

The icon for a node, when that icon is hovered, shall change to an expand/collapse arrow (capture). 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

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

capture

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

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

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

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

Keavon avatar Aug 14 '24 07:08 Keavon