UNPKG

feedbacker-react

Version:

A drop-in React feedback system for component-level feedback capture during development and design review

38 lines 1.14 kB
/** * SnapDOM Adapter * Wraps SnapDOM library for screenshot capture * SnapDOM is a more modern alternative to html2canvas with better performance */ import { CaptureAdapter, CaptureOptions, CaptureResult } from '../types/capture'; export declare class SnapDOMAdapter implements CaptureAdapter { name: string; version: string; private snapdom; private scriptLoaded; isSupported(): Promise<boolean>; preload(): Promise<void>; capture(element: HTMLElement, options?: CaptureOptions): Promise<CaptureResult>; cleanup(): void; getRecommendedOptions(): CaptureOptions; /** * Load SnapDOM script from CDN */ private loadSnapDOMScript; /** * Prepare SnapDOM-specific options */ private prepareSnapDOMOptions; /** * Convert SnapDOM snapshot to canvas */ private snapshotToCanvas; /** * Get the effective background color by walking up the DOM tree */ private getEffectiveBackgroundColor; /** * Resize image to fit within specified constraints */ private resizeImage; } //# sourceMappingURL=SnapDOMAdapter.d.ts.map