Add UNSAFE_replayCanvas. (#36)
This commit is contained in:
@@ -24,6 +24,7 @@
|
|||||||
export let showDebug: boolean = true;
|
export let showDebug: boolean = true;
|
||||||
export let tags: Record<string, string> = {};
|
export let tags: Record<string, string> = {};
|
||||||
export let mouseTail: playerConfig['mouseTail'] = true;
|
export let mouseTail: playerConfig['mouseTail'] = true;
|
||||||
|
export let UNSAFE_replayCanvas: boolean = false;
|
||||||
|
|
||||||
export const getMirror = () => mirror;
|
export const getMirror = () => mirror;
|
||||||
|
|
||||||
@@ -140,6 +141,7 @@
|
|||||||
triggerFocus,
|
triggerFocus,
|
||||||
unpackFn: unpack,
|
unpackFn: unpack,
|
||||||
mouseTail,
|
mouseTail,
|
||||||
|
UNSAFE_replayCanvas,
|
||||||
});
|
});
|
||||||
|
|
||||||
replayer.on('resize', (dimension) => {
|
replayer.on('resize', (dimension) => {
|
||||||
|
|||||||
1
typings/index.d.ts
vendored
1
typings/index.d.ts
vendored
@@ -16,6 +16,7 @@ export default class rrwebPlayer {
|
|||||||
showDebug?: boolean;
|
showDebug?: boolean;
|
||||||
tags?: Record<string, string>;
|
tags?: Record<string, string>;
|
||||||
mouseTail?: playerConfig['mouseTail'];
|
mouseTail?: playerConfig['mouseTail'];
|
||||||
|
UNSAFE_replayCanvas?: boolean;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user