/** * Canvas painting of a comic page (#563): per panel, its background, then * its picture clipped to its outline (flipped when mirrored), then its * border; then the pop-out cut-outs, over every panel (#668); then the lettering * (SPEC D5): balloons and captions, each join group's outline stroked at * twice its width and then filled (so joined bodies, necks and the tail * merge into one outline), its text over it; sound effects last. Nothing * of the lettering is clipped: a balloon may break the border. Everything * is in sheet coordinates: call it outside any flow frame. */ import type { VDTComicBalloon, VDTComicPage, VDTComicPanel } from '../vdt.js'; export { roughOutline, comicRoughBorder } from '../comics/paint.js'; /** Trace a panel's outline as the current path: its polygon, or a rounded * rectangle when it has a radius. */ export declare function comicPanelPath(ctx: CanvasRenderingContext2D, panel: Pick): void; /** Paint one panel: its background, picture and border, and its pop-out * cut-out over them unless `pop` is false (a page paints the cut-outs of * all its panels after the last one, {@link renderComicPanels}). */ export declare function renderComicPanel(ctx: CanvasRenderingContext2D, panel: VDTComicPanel, inkHex?: string | null, pop?: boolean): void; /** Paint the panels of a comic page, in reading order, then their pop-out * cut-outs: one that breaks out of its cell into the next panel's is * drawn over that panel, not under it (#668). */ export declare function renderComicPanels(ctx: CanvasRenderingContext2D, comic: VDTComicPage, inkHex?: string | null): void; /** Trace an SVG path made of M, L, C and Z commands (absolute, as the * lettering writes them) as the current path. */ export declare function traceComicPath(ctx: CanvasRenderingContext2D, d: string): void; /** Paint one balloon: its outline (when it carries its group's), then its * halo and its text, leaned by `skew` and turned by `rotate` degrees * about its box's centre. */ export declare function renderComicBalloon(ctx: CanvasRenderingContext2D, balloon: VDTComicBalloon): void; /** Paint the lettering of a comic page: balloons, captions and notes in * reading order (each join group's outline, then its text), then the * sound effects over everything. */ export declare function renderComicBalloons(ctx: CanvasRenderingContext2D, comic: VDTComicPage): void; /** Paint a whole comic page: its panels, then its lettering. */ export declare function renderComicPage(ctx: CanvasRenderingContext2D, comic: VDTComicPage, inkHex?: string | null): void; //# sourceMappingURL=comic.d.ts.map