fix #565 add departed warning
This commit is contained in:
4
typings/replay/index.d.ts
vendored
4
typings/replay/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
import { Timer } from './timer';
|
||||
import { createPlayerService, createSpeedService } from './machine';
|
||||
import { eventWithTime, playerConfig, playerMetaData, Handler } from '../types';
|
||||
import { eventWithTime, playerConfig, playerMetaData, Handler, Mirror } from '../types';
|
||||
import './styles/style.css';
|
||||
export declare class Replayer {
|
||||
wrapper: HTMLDivElement;
|
||||
@@ -19,6 +19,7 @@ export declare class Replayer {
|
||||
private fragmentParentMap;
|
||||
private elementStateMap;
|
||||
private imageMap;
|
||||
private mirror;
|
||||
private firstPlayedEvent;
|
||||
private newDocumentQueue;
|
||||
constructor(events: Array<eventWithTime | string>, config?: Partial<playerConfig>);
|
||||
@@ -27,6 +28,7 @@ export declare class Replayer {
|
||||
getMetaData(): playerMetaData;
|
||||
getCurrentTime(): number;
|
||||
getTimeOffset(): number;
|
||||
getMirror(): Mirror;
|
||||
play(timeOffset?: number): void;
|
||||
pause(timeOffset?: number): void;
|
||||
resume(timeOffset?: number): void;
|
||||
|
||||
3
typings/utils.d.ts
vendored
3
typings/utils.d.ts
vendored
@@ -1,7 +1,8 @@
|
||||
import { Mirror, throttleOptions, listenerHandler, hookResetter, blockClass, eventWithTime, addedNodeMutation, removedNodeMutation, textMutation, attributeMutation, mutationData, scrollData, inputData, DocumentDimension } from './types';
|
||||
import { INode, serializedNodeWithId } from 'rrweb-snapshot';
|
||||
export declare function on(type: string, fn: EventListenerOrEventListenerObject, target?: Document | Window): listenerHandler;
|
||||
export declare const mirror: Mirror;
|
||||
export declare function createMirror(): Mirror;
|
||||
export declare let mirror: Mirror;
|
||||
export declare function throttle<T>(func: (arg: T) => void, wait: number, options?: throttleOptions): (arg: T) => void;
|
||||
export declare function hookSetter<T>(target: T, key: string | number | symbol, d: PropertyDescriptor, isRevoked?: boolean, win?: Window & typeof globalThis): hookResetter;
|
||||
export declare function patch(source: {
|
||||
|
||||
Reference in New Issue
Block a user