Commit 09cf50d
fix: don't collapse fresh diagrams that were never combined
A fresh dj.Diagram(schema) was incorrectly collapsing because
_explicit_nodes was empty. Now we check both _explicit_nodes and
_is_collapsed to determine if collapse should be applied:
- Fresh diagram (_explicit_nodes empty, _is_collapsed=False): no collapse
- Combined collapsed (_explicit_nodes empty, _is_collapsed=True): collapse all
- Mixed combination: collapse only non-explicit nodes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 26264d4 commit 09cf50d
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
386 | 386 | | |
387 | 387 | | |
388 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
389 | 398 | | |
390 | 399 | | |
391 | 400 | | |
| |||
0 commit comments