mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
callout_side gave every position a side, but a knee exactly on the left, right or top edge, or on a corner, took the bottom side, and the leader line was drawn across the box. A knee on the outline (or within 0.01 pt inside it, as the page hands positions back as f32) now meets the side whose edge it lies on, a corner the left or right side as beside the box. Inside the box, or with a coordinate that isn't a number, it meets the bottom side. The rule is written out on callout_side and every tie is tested. Tests also pin the /CL invariant (ISO 32000-2 Table 177: four or six numbers): four- and six-number callouts keep their count through the arrow point, knee, box move, box resize, whole move and save/reopen, and ten malformed /CL values are refused, left as they were by a resize and shifted in place by a move. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyCfwzyRXj4VfQAVVdv