/** * Moving a laid-out comic (#566, #567): a strip's comic, laid out in its * block's box, onto the sheet; the halves of a two-page spread, laid out * across both sheets, onto the sheet of their page. Pure: every function * returns a new comic and leaves its input as it was. */ import type { VDTBlock, VDTComicBalloon, VDTComicPage, VDTComicPanel, VDTComicSplitter, VDTFrame, VDTPage } from '../vdt.js'; /** * An SVG path moved by `(dx, dy)`: the absolute commands' coordinates are * shifted; relative commands are kept, except a relative `m` that opens * the path (it is absolute there). Arc radii, rotations and flags stay. */ export declare function translateSvgPath(d: string, dx: number, dy: number): string; /** A panel moved by `(dx, dy)`. */ export declare function translateComicPanel(panel: VDTComicPanel, dx: number, dy: number): VDTComicPanel; /** A split line moved by `(dx, dy)` (its percentages stay: they are read * against `parent`, which moves with it). */ export declare function translateComicSplitter(s: VDTComicSplitter, dx: number, dy: number): VDTComicSplitter; /** A balloon moved by `(dx, dy)`: its outline, box, tail tip and lines. */ export declare function translateComicBalloon(b: VDTComicBalloon, dx: number, dy: number): VDTComicBalloon; /** A frame the split generated (#885) moved by `(dx, dy)`: its box and * outline (a text frame's blocks are the page's, where they stand). */ export declare function translateComicFrame(f: VDTFrame, dx: number, dy: number): VDTFrame; /** A comic moved by `(dx, dy)`: frame, panels, split lines, balloons and * the frames the split generated. */ export declare function translateComicPage(comic: VDTComicPage, dx: number, dy: number): VDTComicPage; /** * The comic of a strip block (`VDTBlock.comic`, #566) on the sheet of * `page`: moved from the block's box to where the block sits on the sheet * (its flow box turned or mirrored onto the sheet, `flowRectToPage`). * Undefined for a block that carries no comic. */ export declare function comicBlockOnSheet(page: Pick, block: Pick): VDTComicPage | undefined; /** * Every comic a page shows, on its sheet, in reading order: the comic page * (or the page's half of a spread) first, then the strips its columns hold, * then the strips floated to its bands. What the renderers paint and the * Sandbox hit-tests (panels, split lines, balloons) on that page. */ export declare function pageComics(page: Pick): VDTComicPage[]; //# sourceMappingURL=transform.d.ts.map