@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 11 lines 393 Bytes
Raw
1 import type { PreviewViewportSetting } from "@t3tools/contracts";
2
3 export async function commitViewportAndAspectRatio(
4 setting: PreviewViewportSetting,
5 aspectRatio: number | null,
6 onChange: (setting: PreviewViewportSetting) => Promise<void>,
7 onAspectRatioChange: (aspectRatio: number | null) => void,
8 ): Promise<void> {
9 await onChange(setting);
10 onAspectRatioChange(aspectRatio);
11 }