Skip to content

T040: lines joined until nothing more joins; a radical's dot recorded - #264

Merged
adamjohnwright merged 1 commit into
mainfrom
t040/catalyst-reach-2
Nov 22, 2026
Merged

adamjohnwright merged 1 commit into
mainfrom
t040/catalyst-reach-2

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

Spec 001, T040. Follows #262.

What was misread: figureBoxes looked at each line once, in the order the page draws it. In Immune System's "REG3A oligomerize to form a pore complex", the catalyst (LPS) is drawn below its reaction, and its line comes first in the page's drawing order. When that line was looked at, the reaction's nodes hadn't yet been joined by the reaction's own lines. It reached only its own node, which stood apart (58 pt wide, under FIGURE_MIN_PT), and the label "LPS" was read into the next section's summation.

Change: the lines are joined repeatedly until nothing more joins. LINE_REACH_PT stays at 6 pt.

Test: units.test.ts uses that drawing's shapes, in the order the page draws them. On main (lines looked at once) it fails, and it passes with the loop. Before ordering the shapes as the page does, the test also passed on main. That's why they're in the page's order.

Release 98 comparison: summations 12 → 9. The three are in Immune System: R-HSA-6801762 (the "LPS" label), R-HSA-6784160 and R-HSA-6789325. No other difference changed, recorded or not.

Recorded: R-HSA-1222556's summation holds U+02D9, a superoxide radical's dot ("O2˙−"). None of the embedded fonts draws it, so pdf-export prints a bullet, the radical's usual sign (FR-017's substitutions, src/layout/characters.ts). event-pdf's file reads it as U+0307. The record matches that one section, and every other record still matches something.

Now: 374 differences, 337 recorded, 37 open. Of the open ones, 8 are summations; the rest are the names rows, which #263 covers.

🤖 Generated with Claude Code

Each line was looked at once, in the order the page draws it, so a
catalyst's line drawn before its reaction's lines had joined the
reaction's nodes reached only its own node, and its label (LPS) was read
into the next summation. Summations 12 to 9 on release 98, nothing else
changed. The graph's U+02D9 in one summation, which pdf-export prints as
a bullet (FR-017's substitutions), is recorded: 337 recorded, 37 open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit 4248b6b into main Nov 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant