From 744419469da403be57d30b5b19f6b43246caa57d Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 23 Feb 2026 07:09:26 +0100 Subject: feat: basic ripple editing --- apps/web/src/core/managers/timeline-manager.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'apps/web/src/core/managers/timeline-manager.ts') 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 }); } -- cgit v1.3.1