diff options
Diffstat (limited to 'apps/web/src/lib/commands/base-command.ts')
| -rw-r--r-- | apps/web/src/lib/commands/base-command.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/web/src/lib/commands/base-command.ts b/apps/web/src/lib/commands/base-command.ts index 2d0d04b7..b244f2f3 100644 --- a/apps/web/src/lib/commands/base-command.ts +++ b/apps/web/src/lib/commands/base-command.ts @@ -1,9 +1,23 @@ import type { EditorSelectionPatch } from "@/lib/selection/editor-selection"; +import type { ElementRef } from "@/lib/timeline/types"; export interface CommandResult { selection?: EditorSelectionPatch; } +export function createElementSelectionResult( + selectedElements: ElementRef[], +): CommandResult { + return { + selection: { + selectedElements, + selectedKeyframes: [], + keyframeSelectionAnchor: null, + selectedMaskPoints: null, + }, + }; +} + export abstract class Command { abstract execute(): CommandResult | undefined; |
