mcut
@mcut/timeline

DispatchOptions

Generated TypeScript API reference for the public mcut SDK.

mcut SDK


mcut SDK / timeline/src / DispatchOptions

Interface: DispatchOptions

Defined in: packages/timeline/src/engine.ts:43

Properties

history?

optional history?: boolean;

Defined in: packages/timeline/src/engine.ts:45

Record this edit in undo history (default true).


selection?

optional selection?: `e-${string}`[];

Defined in: packages/timeline/src/engine.ts:53

Selection this edit conceptually produces (e.g. [] for a delete, the new ids for a paste). Applied after the command, and it marks the history entry: undoing restores the pre-edit selection, redoing re-applies this one. Edits that don't declare it leave selection untouched across undo/redo (beyond pruning removed ids).

On this page