Files
feuerwerk/todo-notes/done/node-collapse.md
T
rootandClaude Opus 5 1e2285c545 Let a graph node collapse to its title bar
A chevron in front of the title toggles it without touching the selection,
and right-click offers Collapse node / Expand node for the whole selection
as one undo step. A collapsed node draws its title bar alone; every link of
one side meets at a single point on it, and hidden links there share one
mark per side, since per-port marks would stack on the same pixels. It has
no ports to grab, so a link dropped on it connects nothing.

Like hiding a link this is drawing only: collapsed is saved on the node and
an expanded node leaves no trace in the project file.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-11 08:59:19 +02:00

833 B

Möglichkeit Nodes zuklappen können, wichtig: soll auch gespeichert werden.


Gebaut. Zwei Dinge, die weder oben stehen noch aus dem Commit hervorgehen:

Zugeklappt ist reine Darstellung, wie ein versteckter Link. Der Graph bleibt derselbe, collapsed am Node wird nur gespeichert, und ein aufgeklappter Node hinterlässt keine Spur in der Datei. Weil ein zugeklappter Node keine Ports zum Greifen hat, verbindet ein darauf fallengelassener Link nichts. Neue Kanten gibt es erst nach dem Aufklappen, statt einen Port zu raten.

Versteckte Links teilen sich am zugeklappten Node eine Marke pro Seite statt pro Port. Alle Ports einer Seite liegen dort auf einem Punkt. Mit einer Marke pro Port stapelten sich Stummel, Punkt und Name auf denselben Pixeln (gemessen: zwei Marken mit je links: 1, identische Koordinaten).