/** * A video resource's playback and poster overlays (#454): the play mark and * the QR code, placed on the body the layout gave the poster, plus what the * interactive outputs need to play it. */ import type { Resource } from '../types.js'; import type { ResolvedConfig, VDTResourceVideo, VDTVideoPlayMark, VDTVideoQr } from '../vdt.js'; /** Playback and overlays of a video resource whose body is `bodyWidth` × * `bodyHeight` px; `undefined` for any other resource. */ export declare function layoutVideo(resource: Resource, resolved: ResolvedConfig, bodyWidth: number, bodyHeight: number): VDTResourceVideo | undefined; /** The play mark's triangle, pointing right, inside its rect: vertices in * px relative to the rect's top-left corner. Optically centred (the * triangle's centroid sits a little right of the box's centre). */ export declare function playMarkTriangle(mark: VDTVideoPlayMark): Array<[number, number]>; /** The dark modules of a QR code as horizontal runs, one rect per run, in * px relative to the plate's top-left corner: what a renderer fills * (fewer, abutting shapes than one square per module). */ export declare function qrModuleRuns(qr: VDTVideoQr): Array<{ x: number; y: number; w: number; h: number; }>; //# sourceMappingURL=videoOverlay.d.ts.map