UNPKG

@hyperbrowser/agent

Version:

Hyperbrowsers Web Agent

17 lines (16 loc) 667 B
interface HighlightInfo { element: HTMLElement; index: number; parentIframe: HTMLElement | null; } /** * Renders highlights for the given elements onto an OffscreenCanvas * and returns an ImageBitmap. * * @param highlightInfos Array of objects describing elements to highlight. * @param width The desired width of the canvas (e.g., window.innerWidth). * @param height The desired height of the canvas (e.g., window.innerHeight). * @returns A Promise resolving to an ImageBitmap containing the highlights. */ export declare function renderHighlightsOffscreen(highlightInfos: HighlightInfo[], width: number, height: number): ImageBitmap; export {};