diff options
| author | Maze Winther <mazewinther@gmail.com> | 2026-02-23 07:09:26 +0100 |
|---|---|---|
| committer | Maze Winther <mazewinther@gmail.com> | 2026-02-23 07:09:26 +0100 |
| commit | 744419469da403be57d30b5b19f6b43246caa57d (patch) | |
| tree | d86b253652496157223261d54f51d6f7b6fd047c /apps/web/src/core/managers | |
| parent | 1762dc077dd512f6e8afff855b1ca6696338e0be (diff) | |
| download | opencut-744419469da403be57d30b5b19f6b43246caa57d.tar.gz | |
feat: basic ripple editing
Diffstat (limited to 'apps/web/src/core/managers')
| -rw-r--r-- | apps/web/src/core/managers/timeline-manager.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/web/src/core/managers/timeline-manager.ts b/apps/web/src/core/managers/timeline-manager.ts index c8ac5a79..cf906aee 100644 --- a/apps/web/src/core/managers/timeline-manager.ts +++ b/apps/web/src/core/managers/timeline-manager.ts @@ -140,12 +140,19 @@ export class TimelineManager { elements, splitTime, retainSide = "both", + rippleEnabled = false, }: { elements: { trackId: string; elementId: string }[]; splitTime: number; retainSide?: "both" | "left" | "right"; + rippleEnabled?: boolean; }): { trackId: string; elementId: string }[] { - const command = new SplitElementsCommand(elements, splitTime, retainSide); + const command = new SplitElementsCommand( + elements, + splitTime, + retainSide, + rippleEnabled, + ); this.editor.command.execute({ command }); return command.getRightSideElements(); } @@ -194,10 +201,12 @@ export class TimelineManager { deleteElements({ elements, + rippleEnabled = false, }: { elements: { trackId: string; elementId: string }[]; + rippleEnabled?: boolean; }): void { - const command = new DeleteElementsCommand(elements); + const command = new DeleteElementsCommand(elements, rippleEnabled); this.editor.command.execute({ command }); } |
