close #330 implement more accurate finish event

This commit is contained in:
Yanzhen Yu
2020-09-07 21:59:57 +08:00
parent 0688bb6353
commit 41690c755c
3 changed files with 33 additions and 5 deletions

8
typings/types.d.ts vendored
View File

@@ -286,6 +286,12 @@ export declare type playerConfig = {
insertStyleRules: string[];
triggerFocus: boolean;
UNSAFE_replayCanvas: boolean;
mouseTail: boolean | {
duration?: number;
lineCap?: string;
lineWidth?: number;
strokeStyle?: string;
};
unpackFn?: UnpackFn;
};
export declare type playerMetaData = {
@@ -301,7 +307,7 @@ export declare type missingNodeMap = {
[id: number]: missingNode;
};
export declare type actionWithDelay = {
doAction: () => void;
doAction: () => Promise<void>;
delay: number;
};
export declare type Handler = (event?: unknown) => void;