posthog-js
Version:
Posthog-js allows you to automatically capture usage and send events to PostHog.
15 lines (14 loc) • 390 B
TypeScript
import { RageclickConfig } from '../types';
export default class RageClick {
clicks: {
x: number;
y: number;
timestamp: number;
}[];
thresholdPx: number;
timeoutMs: number;
clickCount: number;
disabled: boolean;
constructor(rageclickConfig: RageclickConfig | boolean);
isRageClick(x: number, y: number, timestamp: number): boolean;
}