feedbacker-react
Version:
A drop-in React feedback system for component-level feedback capture during development and design review
37 lines • 1.15 kB
TypeScript
/**
* Html2Canvas Adapter
* Wraps html2canvas library for screenshot capture
*/
import { CaptureAdapter, CaptureOptions, CaptureResult } from '../types/capture';
export declare class Html2CanvasAdapter implements CaptureAdapter {
name: string;
version: string;
private html2canvas;
private gradientTextElements;
isSupported(): Promise<boolean>;
preload(): Promise<void>;
capture(element: HTMLElement, options?: CaptureOptions): Promise<CaptureResult>;
cleanup(): void;
getRecommendedOptions(): CaptureOptions;
/**
* Get the effective background color by walking up the DOM tree
*/
private getEffectiveBackgroundColor;
/**
* Detect if an element uses gradient text effect
*/
private hasGradientText;
/**
* Find all elements with gradient text within a container
*/
private findGradientTextElements;
/**
* Temporarily fix gradient text for screenshot capture
*/
private temporarilyFixGradientText;
/**
* Resize image to fit within specified constraints
*/
private resizeImage;
}
//# sourceMappingURL=Html2CanvasAdapter.d.ts.map