/** * The reflow log of a composed page (#856, DESIGN §5.5): what the layout * changed from the template's own drawing so the page's content fits — * «dinero grew 8 mm; gasto moved down 8 mm». Each frame's box as the * template declares it (its fixed size, or its `minHeight` when its height * follows its content) is compared with the box the layout gave it. */ import type { FrameCoverProposal, FrameFitStep, FrameOutsideProposal, FrameOverflowProposal, ReflowEvent, VDTDocument } from '../vdt.js'; import type { Rect } from './geometry.js'; /** A frame's declared and final boxes, and the names whose change moves * it (what it anchors to, the frames before it in its group), nearest * first. */ export interface FrameMotion { name: string; declared: Rect; final: Rect; deps: readonly string[]; } /** The events of a page's frames, in `motions` order (template order): * per frame its size first (height, then width), then its moves. */ export declare function reflowEvents(motions: readonly FrameMotion[], pxPerMm: number): ReflowEvent[]; /** One event in words, in English (the command line's language): * «dinero grew 8 mm», «gasto moved down 8 mm», «foto narrowed 4 mm», * «dinero continued on page 9» (the page's index + 1; `composedReflowLog` * names it by its printed number). */ export declare function describeReflowEvent(e: ReflowEvent): string; /** A step of the reflow ladder in words, in English (#858): «text down to * 90 %». `scale` / `imageScale`: where the frame's text and pictures were * left. */ export declare function describeFitStep(step: FrameFitStep, at?: { scale?: number; imageScale?: number; }): string; /** A fix of a `frameOverflow` in words, in English (#858): «raise * maxHeight to 64 mm». */ export declare function describeFrameOverflowProposal(p: FrameOverflowProposal): string; /** A fix of a `frameCovered` in words, in English (#1053): «paint * "photo" under it (layer: 0)». */ export declare function describeFrameCoverProposal(p: FrameCoverProposal): string; /** A fix of a `frameOutsideArea` in words, in English (#1053). */ export declare function describeFrameOutsideProposal(p: FrameOutsideProposal): string; /** A composed page's log, for the command line and the Sandbox. */ export interface ComposedPageReflow { /** Book-absolute page index (`VDTPage.index`). */ pageIndex: number; /** The page's printed number. */ pageLabel: string; template: string; fenceIndex: number; events: ReflowEvent[]; /** The events in words ({@link describeReflowEvent}). */ lines: string[]; } /** The reflow log of every composed page of `doc` that has one. */ export declare function composedReflowLog(doc: Pick): ComposedPageReflow[]; //# sourceMappingURL=reflowLog.d.ts.map