update dependencies and generate typings (#44)
This commit is contained in:
37
typings/replay/index.d.ts
vendored
Normal file
37
typings/replay/index.d.ts
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import Timer from './timer';
|
||||
import { eventWithTime, playerConfig, playerMetaData } from '../types';
|
||||
import './styles/style.css';
|
||||
export declare class Replayer {
|
||||
wrapper: HTMLDivElement;
|
||||
iframe: HTMLIFrameElement;
|
||||
timer: Timer;
|
||||
private events;
|
||||
private config;
|
||||
private mouse;
|
||||
private emitter;
|
||||
private baselineTime;
|
||||
private lastPlayedEvent;
|
||||
private nextUserInteractionEvent;
|
||||
private noramlSpeed;
|
||||
private missingNodeRetryMap;
|
||||
constructor(events: eventWithTime[], config?: Partial<playerConfig>);
|
||||
on(event: string, handler: mitt.Handler): void;
|
||||
setConfig(config: Partial<playerConfig>): void;
|
||||
getMetaData(): playerMetaData;
|
||||
getTimeOffset(): number;
|
||||
play(timeOffset?: number): void;
|
||||
pause(): void;
|
||||
resume(timeOffset?: number): void;
|
||||
private setupDom;
|
||||
private handleResize;
|
||||
private getDelay;
|
||||
private getCastFn;
|
||||
private rebuildFullSnapshot;
|
||||
private waitForStylesheetLoad;
|
||||
private applyIncremental;
|
||||
private resolveMissingNode;
|
||||
private hoverElements;
|
||||
private isUserInteraction;
|
||||
private restoreSpeed;
|
||||
private warnNodeNotFound;
|
||||
}
|
||||
2
typings/replay/styles/inject-style.d.ts
vendored
Normal file
2
typings/replay/styles/inject-style.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare const rules: string[];
|
||||
export default rules;
|
||||
13
typings/replay/timer.d.ts
vendored
Normal file
13
typings/replay/timer.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { playerConfig, actionWithDelay } from '../types';
|
||||
export default class Timer {
|
||||
timeOffset: number;
|
||||
private actions;
|
||||
private config;
|
||||
private raf;
|
||||
constructor(config: playerConfig, actions?: actionWithDelay[]);
|
||||
addAction(action: actionWithDelay): void;
|
||||
addActions(actions: actionWithDelay[]): void;
|
||||
start(): void;
|
||||
clear(): void;
|
||||
private findActionIndex;
|
||||
}
|
||||
Reference in New Issue
Block a user