chore: normalize line endings

This commit is contained in:
Maze Winther
2026-03-29 15:56:48 +02:00
parent 82817cb50c
commit 4d127a038b
736 changed files with 73880 additions and 73782 deletions
@@ -29,6 +29,8 @@ import {
import { loadFonts } from "@/lib/fonts/google-fonts";
import { DEFAULTS } from "@/lib/timeline/defaults";
import { getElementFontFamilies } from "@/lib/timeline/element-utils";
import { getRaisedProjectFpsForImportedMedia } from "@/lib/project/fps";
import type { MediaAsset } from "@/lib/media/types";
export interface MigrationState {
isMigrating: boolean;
@@ -492,6 +494,23 @@ export class ProjectManager {
command.execute();
}
ratchetFpsForImportedMedia({
importedAssets,
}: {
importedAssets: Array<Pick<MediaAsset, "type" | "fps">>;
}): number | null {
if (!this.active) return null;
const nextFps = getRaisedProjectFpsForImportedMedia({
currentFps: this.active.settings.fps,
importedAssets,
});
if (nextFps === null) return null;
new UpdateProjectSettingsCommand({ fps: nextFps }).execute();
return nextFps;
}
async updateThumbnail({ thumbnail }: { thumbnail: string }): Promise<void> {
if (!this.active) return;