This commit is contained in:
Andras Schmelczer 2026-05-14 08:09:19 +01:00
parent a8165249a4
commit a4103b0896
64 changed files with 5376 additions and 3832 deletions

View file

@ -1,6 +1,6 @@
import type { Page } from 'playwright';
import { DashboardRecorder } from './dashboard.js';
import { installCursor, installZoomWrapper } from './dom.js';
import { installCursor, installZoomWrapper, setAspectClass } from './dom.js';
import { sleep } from './motion.js';
import { dashboardUrl } from './routes.js';
import { runStoryboard, type RunnerResult } from './runner.js';
@ -30,6 +30,7 @@ export async function prepareTimeline(
await sleep(400);
await installZoomWrapper(page);
await installCursor(page);
await setAspectClass(page, storyboard.video.aspect);
const ctx: ScriptCtx = { page, dashboard, cursor: { x: 200, y: 240 } };
await page.mouse.move(ctx.cursor.x, ctx.cursor.y);