upgrade to rrweb 0.9.2

This commit is contained in:
Yanzhen Yu
2020-09-07 22:07:17 +08:00
parent 01b138c650
commit 1f16bd750f
5 changed files with 24 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { onMount, onDestroy } from 'svelte';
import { Replayer, unpack } from 'rrweb';
import type { eventWithTime } from 'rrweb/typings/types';
import { Replayer, unpack, mirror } from 'rrweb';
import type { eventWithTime, playerConfig } from 'rrweb/typings/types';
import {
inlineCss,
openFullscreen,
@@ -23,6 +23,9 @@
export let showWarning: boolean = true;
export let showDebug: boolean = true;
export let tags: Record<string, string> = {};
export let mouseTail: playerConfig['mouseTail'] = true;
export const getMirror = () => mirror;
const controllerHeight = 80;
let speed = 1;
@@ -127,6 +130,7 @@
showDebug,
triggerFocus,
unpackFn: unpack,
mouseTail,
});
replayer.on('resize', (dimension) => {