mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 00:15:44 +00:00
* Header pictures: while editing the header, a click selects its Behind Text picture wherever no header text covers it Header and footer Behind Text pictures skip the deferred drag-over-text path where the plain hit test picked them with no text under them, and a right-click selects them (and sets the page they were hit on) so Reset Picture and Wrap Text act on them. Tests cover a header and a footer, a drag, and a repeated picture right-clicked on another page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #5601: header Behind Text picture: a left-click selects the copy clicked on a repeated page The press branch of pointer() selected the picture but left page_hint on the page being edited, so on a header picture repeated on page 2 the frame and handles were resolved and drawn on page 1. Set page_hint to the picked object's page, as select_at does for a right-click. Adds a left-click counterpart to the right-click test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #5601: header text hit test checks each line's own extent CodeRabbit: hf_text_at took the whole paragraph's right edge from its last line, so a click on a long first line past a short last line's end counted as clear of text and selected the Behind Text picture under it. Each line now has its own band and extent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * #5601: pin that centred and right-aligned header lines cover their whole band Line::left/right are the edges available to a line, not where its ink sits, so a centred or right-aligned header line already covers the Behind Text picture across its band (indent and floats narrow it) plus 40pt. Test pins that, and the parity row now says what counts as covering the picture. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * #5601: pin Line.left/right as band edges in the header band test Assert the band's left edge is the 150pt indent, the centred/right ink starts well inside it, and a click between the indent and the ink is text. Fails if Line.left were the ink extent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>