upgrade to rrweb 0.9.2

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent f5e4887090
commit eafa09c692
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) => {