import type { RenderWarning, VDTDocument, VDTPage } from '../vdt.js'; import { type PrintPreview } from '../color/softProof.js'; export { registerResourceImage, unregisterResourceImage, clearResourceImages, getResourceImage, } from './renderResourceBlock.js'; export type { ResourceImageSource, RegisterResourceImageOptions } from './renderResourceBlock.js'; export { registerVerticalAlternates, unregisterVerticalAlternates, loadVerticalAlternates, verticalTwinName, VERTICAL_ALTERNATE_SAMPLE } from './verticalText.js'; export type { VerticalAlternatesFace } from './verticalText.js'; export interface RenderPageOptions { pageNegative?: boolean; /** Bitmap pixels per page pixel (1 = the page's own resolution, the * document's dpi). A page shown smaller than its size is painted at the * size it is shown, times the device pixel ratio: fewer pixels to fill * and to keep. The drawing itself stays in page pixels. Above 1 the * page is painted larger than its resolution: text, rules and vector * pictures (a registered SVG ``, a formula) are drawn at the * bitmap's resolution (#674); a bitmap picture has no more pixels to * give. */ scale?: number; /** Told of what the render could not paint as asked: an image with * nothing registered for its `fileId` (see `registerResourceImage`) is * painted as a placeholder and reported once per `fileId` and render * call, as a `missingImage` warning. */ onWarning?: (warning: RenderWarning) => void; /** Whether `diagramStyle.singleInk` tints the SVG pictures registered * without a `singleInk` flag of their own (see * `RegisterResourceImageOptions.singleInk`) to the document's ink. * Defaults to false in postext 1.x: hosts written for 1.4 recolour the * markup with `applySingleInkToSvg` before decoding it, and a picture * tinted twice comes out lighter. A picture decoded from an SVG data URI * `applySingleInkToSvg` marked, or registered with `singleInk: false`, * is never tinted. The next major release turns it on. */ singleInk?: boolean; /** Paints the trimmed page only: with `page.cutLines` on, the bitmap * covers the trim box (the page as it comes out of the guillotine), * leaving out the bleed, the slug and the crop marks. `scale` still * counts bitmap pixels per page pixel. No effect without cut lines. */ trim?: boolean; /** Paint the page as it will print (#606): the finished page goes * through the soft proof of the output profile (`createPrintPreview`), * large black areas in rich black; then the trim, bleed and safe-zone * guides and the preflight marks it carries are drawn over it. */ printPreview?: PrintPreview; } export declare function renderPageToCanvas(page: VDTPage, doc: VDTDocument, canvas: HTMLCanvasElement, options?: RenderPageOptions): void; export declare function renderPage(page: VDTPage, doc: VDTDocument, options?: RenderPageOptions): HTMLCanvasElement; export declare function renderToCanvas(doc: VDTDocument, options?: RenderPageOptions): HTMLCanvasElement[]; //# sourceMappingURL=index.d.ts.map