move all events to an enum and update guide

This commit is contained in:
Yanzhen Yu
2019-01-25 17:18:51 +08:00
parent 079880be1e
commit 6abf4fd4a0
4 changed files with 55 additions and 9 deletions

View File

@@ -249,3 +249,16 @@ export type actionWithDelay = {
doAction: () => void;
delay: number;
};
export enum ReplayerEvents {
Start = 'start',
Pause = 'pause',
Resume = 'resume',
Resize = 'resize',
Finish = 'finish',
FullsnapshotRebuilded = 'fullsnapshot-rebuilded',
LoadStylesheetStart = 'load-stylesheet-start',
LoadStylesheetEnd = 'load-stylesheet-end',
SkipStart = 'skip-start',
SkipEnd = 'skip-end',
}