Interface VideoEditorDocumentSync
interface VideoEditorDocumentSync {
canRedo: boolean;
canUndo: boolean;
doc: Document;
generateId: () => string;
redo: () => void;
reset: () => void;
transact: <T>(fn: () => T) => T;
undo: () => void;
}
canRedo: boolean;
canUndo: boolean;
doc: Document;
generateId: () => string;
redo: () => void;
reset: () => void;
transact: <T>(fn: () => T) => T;
undo: () => void;
}
Implemented by
Properties
canRedo
canRedo: boolean
canUndo
canUndo: boolean
The editor has a change that can be undone
doc
generateId
generateId: () => string
Generate A unique ID
redo
redo: () => void
Redo the last editor action.
reset
reset: () => void
Clear undo hsitory
transact
transact: <T>(fn: () => T) => T
undo
undo: () => void
Undo the last editor action.
A change was undone and can be reapplied