27 lines
848 B
TypeScript
27 lines
848 B
TypeScript
/**
|
|
* Node-side ghost cursor helpers.
|
|
* Injects the browser bundle and forwards mouse action events to the page overlay.
|
|
*/
|
|
import type { Page, MouseActionEvent } from '@xmorse/playwright-core';
|
|
export interface GhostCursorClientOptions {
|
|
style?: 'minimal' | 'dot' | 'screenstudio';
|
|
color?: string;
|
|
size?: number;
|
|
zIndex?: number;
|
|
easing?: string;
|
|
minDurationMs?: number;
|
|
maxDurationMs?: number;
|
|
speedPxPerMs?: number;
|
|
}
|
|
export declare function enableGhostCursor(options: {
|
|
page: Page;
|
|
cursorOptions?: GhostCursorClientOptions;
|
|
}): Promise<void>;
|
|
export declare function disableGhostCursor(options: {
|
|
page: Page;
|
|
}): Promise<void>;
|
|
export declare function applyGhostCursorMouseAction(options: {
|
|
page: Page;
|
|
event: MouseActionEvent;
|
|
}): Promise<void>;
|
|
//# sourceMappingURL=ghost-cursor.d.ts.map
|