/** * A composed page's frames on the canvas (#855): each frame's blocks * painted as floats are, turned by the frame's matrix and clipped to its * box when its content overflows, in layer order, with the template's * decoration at layer 0 (`composedPaintOrder`). On a page of a spread * (#861) all of it is clipped to the page's share of the sheet. */ import type { VDTComicPage, VDTDesignSlot, VDTPage } from '../vdt.js'; import { type ComposedPaintPart } from '../composed/paint.js'; import type { CjkRegion } from '../types.js'; /** * Paint the frames of `page.composed` in their paint order. With * `decoration` the template's decoration is painted between the layers * below 0 and the rest; without it (a page painted through a flow frame, * whose decoration stands on the sheet) it is left to the caller, who * paints the frames under it (`part: 'below'`) and over it (`'above'`) * in two calls. */ /** What a vertical frame's text is painted with (#944): the document's * `cjk.region` and `cjk.uprightDigits`. */ export interface FrameCjkPaint { region: CjkRegion; uprightDigits: number; } export declare function renderComposedFrames(ctx: CanvasRenderingContext2D, page: VDTPage, inkHex: string | null, decoration: VDTDesignSlot | undefined, part?: ComposedPaintPart, cjk?: FrameCjkPaint): void; /** The text frames of a comic page (`::panel{text}`, #885), over its * panels (`comicFramePaintOrder`). */ export declare function renderComicTextFrames(ctx: CanvasRenderingContext2D, page: VDTPage, inkHex: string | null, comic?: VDTComicPage | undefined): void; /** A composed page's decoration painted on the sheet (a page painted * through a flow frame), clipped to its share of a spread's sheet: the * part under the frames of layer 0 and up, or (`'over'`, #1076) the part * painted after every frame. */ export declare function renderComposedDecoration(ctx: CanvasRenderingContext2D, page: VDTPage, inkHex: string | null, which?: 'under' | 'over'): void; //# sourceMappingURL=composed.d.ts.map