Commit 79e2a8e
feat: cherry-pick #49 diagram edge fixes + drop 'Reaction Diagram' from TOC
Salvaging the still-relevant parts of PR #49 (open since March 30,
since superseded for the description-tab arrow-function form). Two
behaviour changes in diagram.service.ts, plus Eliot's review note:
diagram.service.ts:
- Connectors whose segments are missing endpoints now fall back to
the underlying nodeP/reactionP positions instead of sourceP/targetP.
source/target swap for OUTPUT connectors, which was pulling some
edges the wrong way (Eliot's repro: R-HSA-112307, R-HSA-1296071).
- console.assert near MIN_DIST drops the abs() so the assert reflects
the actual signed distance (negative d would always pass otherwise).
description-tab.component.ts:
- The `case 'reactionDiagram'` arm of isTOCIncluded picked up the
same `&& showReactionDiagram()` guard the elements array already
uses, so reactions whose embedded diagram is suppressed no longer
leave an orphaned "Reaction Diagram" item in the right-rail TOC
(Eliot's review comment).
Closes PR #49.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e4a27dc commit 79e2a8e
2 files changed
Lines changed: 9 additions & 7 deletions
File tree
- projects/pathway-browser/src/app
- details/tabs/description-tab
- services
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
759 | 759 | | |
760 | 760 | | |
761 | 761 | | |
762 | | - | |
| 762 | + | |
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| |||
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
747 | 747 | | |
748 | 748 | | |
749 | 749 | | |
750 | | - | |
751 | | - | |
752 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
753 | 755 | | |
754 | | - | |
755 | | - | |
| 756 | + | |
| 757 | + | |
756 | 758 | | |
757 | 759 | | |
758 | 760 | | |
| |||
783 | 785 | | |
784 | 786 | | |
785 | 787 | | |
786 | | - | |
| 788 | + | |
787 | 789 | | |
788 | 790 | | |
789 | 791 | | |
| |||
0 commit comments