mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-28 20:26:57 -06:00
* Anchored text frames compose against the grid and page where they are placed An anchored text frame is not a spread item, so frame_specs composed it at its stored transform: no page, no page side, no page rect, and a baseline grid phase taken from that transform. A note set to Only Align First Line to Grid snapped to the wrong line, and page-number markers and spine-relative alignment inside it saw no page. The composer now looks up the host story's composition first, finds where it placed the frame (in its frames' anchored objects, footnotes or table cells) and composes the frame's story against that placement (ComposeOptions::placed). The cache does the same and adds the placement to the entry's signature, so a note recomposes when its host moves it. Host lookups stop after eight levels, which bounds stories anchored in each other. * Anchored text frames: the cache keys on the placed spread's pages