summaryrefslogtreecommitdiff
path: root/apps/web/src/commands/scene/move-bookmark.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/commands/scene/move-bookmark.ts')
-rw-r--r--apps/web/src/commands/scene/move-bookmark.ts17
1 files changed, 13 insertions, 4 deletions
diff --git a/apps/web/src/commands/scene/move-bookmark.ts b/apps/web/src/commands/scene/move-bookmark.ts
index a1624eb0..45b7bda5 100644
--- a/apps/web/src/commands/scene/move-bookmark.ts
+++ b/apps/web/src/commands/scene/move-bookmark.ts
@@ -3,17 +3,26 @@ import { EditorCore } from "@/core";
import type { TScene } from "@/timeline";
import { updateSceneInArray } from "@/timeline/scenes";
import { getFrameTime, moveBookmarkInArray } from "@/timeline/bookmarks/index";
+import type { MediaTime } from "@/wasm";
export class MoveBookmarkCommand extends Command {
private savedScenes: TScene[] | null = null;
- constructor(
- private fromTime: number,
- private toTime: number,
- ) {
+ constructor({
+ fromTime,
+ toTime,
+ }: {
+ fromTime: MediaTime;
+ toTime: MediaTime;
+ }) {
super();
+ this.fromTime = fromTime;
+ this.toTime = toTime;
}
+ private fromTime: MediaTime;
+ private toTime: MediaTime;
+
execute(): CommandResult | undefined {
const editor = EditorCore.getInstance();
const activeScene = editor.scenes.getActiveScene();