summaryrefslogtreecommitdiff
path: root/apps/web/src/core/managers/scenes-manager.ts
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-29 00:37:56 +0200
committerMaze Winther <mazewinther@gmail.com>2026-05-02 03:27:23 +0200
commita9b9cf6bf50f08723896659634f2e6afc17bcd42 (patch)
tree9175b49ff21f4326872ac9e541d2765cc7994ebc /apps/web/src/core/managers/scenes-manager.ts
parentd6622dc6b3523a5658cd512b44f15f7a66fd540c (diff)
downloadopencut-a9b9cf6bf50f08723896659634f2e6afc17bcd42.tar.gz
chore: switch from biome to eslint + prettier; fix ton of lint issues
Diffstat (limited to 'apps/web/src/core/managers/scenes-manager.ts')
-rw-r--r--apps/web/src/core/managers/scenes-manager.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/apps/web/src/core/managers/scenes-manager.ts b/apps/web/src/core/managers/scenes-manager.ts
index c9558a6d..a4c364ce 100644
--- a/apps/web/src/core/managers/scenes-manager.ts
+++ b/apps/web/src/core/managers/scenes-manager.ts
@@ -41,7 +41,7 @@ export class ScenesManager {
throw new Error("No active project");
}
- const command = new CreateSceneCommand(name, isMain);
+ const command = new CreateSceneCommand({ name, isMain });
this.editor.command.execute({ command });
return command.getSceneId();
}
@@ -77,7 +77,10 @@ export class ScenesManager {
throw new Error("No active project");
}
- const command = new RenameSceneCommand(sceneId, name);
+ const command = new RenameSceneCommand({
+ sceneId,
+ newName: name,
+ });
this.editor.command.execute({ command });
}
@@ -138,7 +141,7 @@ export class ScenesManager {
time: MediaTime;
updates: Partial<Omit<Bookmark, "time">>;
}): Promise<void> {
- const command = new UpdateBookmarkCommand(time, updates);
+ const command = new UpdateBookmarkCommand({ time, updates });
this.editor.command.execute({ command });
}
@@ -149,7 +152,7 @@ export class ScenesManager {
fromTime: MediaTime;
toTime: MediaTime;
}): Promise<void> {
- const command = new MoveBookmarkCommand(fromTime, toTime);
+ const command = new MoveBookmarkCommand({ fromTime, toTime });
this.editor.command.execute({ command });
}