UNPKG

@alithanar/react-automation-profiler

Version:

Automated React profiling and data visualization using React's Profiler API, Puppeteer, and D3.

34 lines (33 loc) 1.14 kB
export declare type MouseMoveEvent = { target: { style: { outline: string; }; } & { ['__data__']: { key: keyof ParagraphMap; value: string; }; }; }; export declare enum MouseEventSelectors { INTERACTIONS = "interactions", RECT = "rect", TOTAL = "total" } export declare enum ParagraphMap { ACTUAL_DURATION = "Actual Duration", BASE_DURATION = "Base Duration", NUMBER_OF_INTERACTIONS = "Number of Interactions", TOTAL_AUTOMATION_TIME_ELAPSED = "Total Automation Time Elapsed" } export declare const paragraphs: { [key in ParagraphMap]?: string; }; export declare function addExportListener(): void; export declare function createCarousel(carouselId: string): HTMLDivElement; export declare function createSVG(id: string): SVGSVGElement; export declare function handleMouseOut(e?: MouseMoveEvent): void; export declare function handleMouseOver(name?: string, e?: MouseMoveEvent): void; export declare function initCarouselState(carouselIds: string[]): void; export declare function updateTooltipPosition(e: MouseEvent): void;